Skip to content

Commit cbf407c

Browse files
committed
time::Tm should impl Eq in addition to PartialEq
1 parent 5bad333 commit cbf407c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libtime/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ pub fn tzset() {
203203

204204
/// Holds a calendar date and time broken down into its components (year, month, day, and so on),
205205
/// also called a broken-down time value.
206-
#[deriving(Clone, PartialEq, Show)]
206+
#[deriving(Clone, PartialEq, Eq, Show)]
207207
pub struct Tm {
208208
/// Seconds after the minute - [0, 60]
209209
pub tm_sec: i32,

0 commit comments

Comments
 (0)