Skip to content

Commit d30001d

Browse files
committed
auto merge of #16519 : apoelstra/rust/patch-1, r=alexcrichton
This is needed to derive Clone on structures containing durations.
2 parents 38cb37d + b586582 commit d30001d

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)