diff --git a/crates/relayer-types/src/timestamp.rs b/crates/relayer-types/src/timestamp.rs index c3d3668e29..3cda62807f 100644 --- a/crates/relayer-types/src/timestamp.rs +++ b/crates/relayer-types/src/timestamp.rs @@ -1,7 +1,7 @@ use crate::prelude::*; use core::fmt::{Display, Error as FmtError, Formatter}; -use core::hash::{Hash, Hasher}; +use core::hash::Hash; use core::num::ParseIntError; use core::ops::{Add, Sub}; use core::str::FromStr; @@ -21,21 +21,13 @@ pub const ZERO_DURATION: Duration = Duration::from_secs(0); /// a `u64` value and a raw timestamp. In protocol buffer, the timestamp is /// represented as a `u64` Unix timestamp in nanoseconds, with 0 representing the absence /// of timestamp. -#[derive(PartialEq, Eq, Copy, Clone, Debug, Default, Deserialize, Serialize, PartialOrd, Ord)] +#[derive( + Copy, Clone, Debug, Default, Deserialize, Serialize, PartialEq, Eq, PartialOrd, Ord, Hash, +)] pub struct Timestamp { time: Option