time::Tm should impl Eq in addition to PartialEq
This commit is contained in:
parent
5bad333fec
commit
cbf407c8d0
1 changed files with 1 additions and 1 deletions
|
@ -203,7 +203,7 @@ pub fn tzset() {
|
||||||
|
|
||||||
/// Holds a calendar date and time broken down into its components (year, month, day, and so on),
|
/// Holds a calendar date and time broken down into its components (year, month, day, and so on),
|
||||||
/// also called a broken-down time value.
|
/// also called a broken-down time value.
|
||||||
#[deriving(Clone, PartialEq, Show)]
|
#[deriving(Clone, PartialEq, Eq, Show)]
|
||||||
pub struct Tm {
|
pub struct Tm {
|
||||||
/// Seconds after the minute - [0, 60]
|
/// Seconds after the minute - [0, 60]
|
||||||
pub tm_sec: i32,
|
pub tm_sec: i32,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue