auto merge of #16519 : apoelstra/rust/patch-1, r=alexcrichton

This is needed to derive Clone on structures containing durations.
This commit is contained in:
bors 2014-08-16 00:46:15 +00:00
commit d30001d04d

View File

@ -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