Skip to content

Commit

Permalink
Derive Clone for std::time::Duration
Browse files Browse the repository at this point in the history
This is needed to derive Clone for types containing Durations.
  • Loading branch information
apoelstra committed Aug 15, 2014
1 parent 406de8d commit b586582
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

5 comments on commit b586582

@bors
Copy link
Contributor

@bors bors commented on b586582 Aug 16, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from alexcrichton
at apoelstra@b586582

@bors
Copy link
Contributor

@bors bors commented on b586582 Aug 16, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging apoelstra/rust/patch-1 = b586582 into auto

@bors
Copy link
Contributor

@bors bors commented on b586582 Aug 16, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apoelstra/rust/patch-1 = b586582 merged ok, testing candidate = d30001d

@bors
Copy link
Contributor

@bors bors commented on b586582 Aug 16, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = d30001d

Please sign in to comment.