Skip to content

Commit b586582

Browse files
committed
Derive Clone for std::time::Duration
This is needed to derive Clone for types containing Durations.
1 parent 406de8d commit b586582

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/time/duration.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ macro_rules! try_opt(
3838
// FIXME #16466: This could be represented as (i64 seconds, u32 nanos)
3939
/// ISO 8601 time duration with nanosecond precision.
4040
/// This also allows for the negative duration; see individual methods for details.
41-
#[deriving(PartialEq, Eq, PartialOrd, Ord)]
41+
#[deriving(Clone, PartialEq, Eq, PartialOrd, Ord)]
4242
pub struct Duration {
4343
days: i32,
4444
secs: u32, // Always < SECS_PER_DAY

0 commit comments

Comments
 (0)