Merge pull request #109 from amikhalev/weekday-derive-hash

Added #[derive(Hash)] for Weekday enum
This commit is contained in:
Kang Seonghoon 2016-11-15 09:55:09 +09:00 committed by GitHub
commit 0122e5a1a7
1 changed files with 1 additions and 1 deletions

View File

@ -384,7 +384,7 @@ pub mod format;
/// The order of the days of week depends on the context.
/// (This is why this type does *not* implement `PartialOrd` or `Ord` traits.)
/// One should prefer `*_from_monday` or `*_from_sunday` methods to get the correct result.
#[derive(PartialEq, Eq, Copy, Clone, Debug)]
#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)]
#[cfg_attr(feature = "rustc-serialize", derive(RustcEncodable, RustcDecodable))]
pub enum Weekday {
/// Monday.