Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Derive Hash for Duration
  • Loading branch information
sfackler committed Jan 11, 2016
1 parent d70ab2b commit 416267f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/time/duration.rs
Expand Up @@ -40,7 +40,7 @@ const MILLIS_PER_SEC: u64 = 1_000;
/// let ten_millis = Duration::from_millis(10);
/// ```
#[stable(feature = "duration", since = "1.3.0")]
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Debug)]
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Debug, Hash)]
pub struct Duration {
secs: u64,
nanos: u32, // Always 0 <= nanos < NANOS_PER_SEC
Expand Down

0 comments on commit 416267f

Please sign in to comment.