From cbf407c8d019bd9daee80ca5cadab0751870ed41 Mon Sep 17 00:00:00 2001 From: Daniel Brooks Date: Sat, 2 Aug 2014 10:25:32 -0700 Subject: [PATCH] time::Tm should impl Eq in addition to PartialEq --- src/libtime/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libtime/lib.rs b/src/libtime/lib.rs index 9ac1e2a615715..56a22bb2addeb 100644 --- a/src/libtime/lib.rs +++ b/src/libtime/lib.rs @@ -203,7 +203,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, PartialEq, Show)] +#[deriving(Clone, PartialEq, Eq, Show)] pub struct Tm { /// Seconds after the minute - [0, 60] pub tm_sec: i32,