Skip to content

Commit 3e248aa

Browse files
committedJan 14, 2016
Rollup merge of rust-lang#30818 - sfackler:duration-hash, r=alexcrichton
tikue pointed out in IRC that this was missing.
2 parents 6f4ede4 + 416267f commit 3e248aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/libstd/time/duration.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const MILLIS_PER_SEC: u64 = 1_000;
4040
/// let ten_millis = Duration::from_millis(10);
4141
/// ```
4242
#[stable(feature = "duration", since = "1.3.0")]
43-
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Debug)]
43+
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Debug, Hash)]
4444
pub struct Duration {
4545
secs: u64,
4646
nanos: u32, // Always 0 <= nanos < NANOS_PER_SEC

0 commit comments

Comments
 (0)
Please sign in to comment.