diff options
| author | Andrew Poelstra <apoelstra@wpsoftware.net> | 2014-08-15 07:23:51 -0700 |
|---|---|---|
| committer | Andrew Poelstra <apoelstra@wpsoftware.net> | 2014-08-15 07:50:02 -0700 |
| commit | b58658248165c9cf6dfb37c4b713b9e831192512 (patch) | |
| tree | da2f6f6e98846baf04e61645bfbd1eb780886db4 /src/libstd/time | |
| parent | 406de8d5dd07bb898c9c4db438dd35829b7a6c25 (diff) | |
| download | rust-b58658248165c9cf6dfb37c4b713b9e831192512.tar.gz rust-b58658248165c9cf6dfb37c4b713b9e831192512.zip | |
Derive Clone for std::time::Duration
This is needed to derive Clone for types containing Durations.
Diffstat (limited to 'src/libstd/time')
| -rw-r--r-- | src/libstd/time/duration.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/time/duration.rs b/src/libstd/time/duration.rs index 545d1f2aab4..155dfbc66c0 100644 --- a/src/libstd/time/duration.rs +++ b/src/libstd/time/duration.rs @@ -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 |
