Merge pull request #254 from LuoZijun/patch-1

Add Hash trait on FixedOffset
This commit is contained in:
Brandon W Maister 2018-06-24 13:29:53 -04:00 committed by GitHub
commit e165a93a6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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,
} }