Skip to content

Commit

Permalink
auto merge of #16519 : apoelstra/rust/patch-1, r=alexcrichton
Browse files Browse the repository at this point in the history
This is needed to derive Clone on structures containing durations.
  • Loading branch information
bors committed Aug 16, 2014
2 parents 38cb37d + b586582 commit d30001d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/time/duration.rs
Expand Up @@ -38,7 +38,7 @@ macro_rules! try_opt(
// FIXME #16466: This could be represented as (i64 seconds, u32 nanos)
/// ISO 8601 time duration with nanosecond precision.
/// This also allows for the negative duration; see individual methods for details.
#[deriving(PartialEq, Eq, PartialOrd, Ord)]
#[deriving(Clone, PartialEq, Eq, PartialOrd, Ord)]
pub struct Duration {
days: i32,
secs: u32, // Always < SECS_PER_DAY
Expand Down

0 comments on commit d30001d

Please sign in to comment.