Merge pull request #254 from LuoZijun/patch-1
Add Hash trait on FixedOffset
This commit is contained in:
commit
e165a93a6c
|
@ -19,7 +19,7 @@ use super::{TimeZone, Offset, LocalResult};
|
||||||
/// on a `FixedOffset` struct is the preferred way to construct
|
/// on a `FixedOffset` struct is the preferred way to construct
|
||||||
/// `DateTime<FixedOffset>` instances. See the [`east`](#method.east) and
|
/// `DateTime<FixedOffset>` instances. See the [`east`](#method.east) and
|
||||||
/// [`west`](#method.west) methods for examples.
|
/// [`west`](#method.west) methods for examples.
|
||||||
#[derive(Copy, Clone, PartialEq, Eq)]
|
#[derive(PartialEq, Eq, Hash, Copy, Clone)]
|
||||||
pub struct FixedOffset {
|
pub struct FixedOffset {
|
||||||
local_minus_utc: i32,
|
local_minus_utc: i32,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue