diff options
Diffstat (limited to 'src/libtime/lib.rs')
| -rw-r--r-- | src/libtime/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libtime/lib.rs b/src/libtime/lib.rs index e9b20c0117d..91e608360bc 100644 --- a/src/libtime/lib.rs +++ b/src/libtime/lib.rs @@ -74,7 +74,7 @@ mod imp { } /// A record specifying a time value in seconds and nanoseconds. -#[deriving(Clone, Eq, TotalEq, Ord, TotalOrd, Encodable, Decodable, Show)] +#[deriving(Clone, PartialEq, TotalEq, PartialOrd, TotalOrd, Encodable, Decodable, Show)] pub struct Timespec { pub sec: i64, pub nsec: i32 } /* * Timespec assumes that pre-epoch Timespecs have negative sec and positive @@ -202,7 +202,7 @@ pub fn tzset() { /// Holds a calendar date and time broken down into its components (year, month, day, and so on), /// also called a broken-down time value. -#[deriving(Clone, Eq, Show)] +#[deriving(Clone, PartialEq, Show)] pub struct Tm { /// Seconds after the minute – [0, 60] pub tm_sec: i32, |
