Skip to content

Commit

Permalink
Make date hash
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasdenH committed Apr 17, 2019
1 parent 6f49ffe commit ff8b3ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/date.rs
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ lazy_static! {
}

/// An OpenTTD date.
#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd)]
#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
pub struct Date(u32);

impl std::fmt::Display for Date {
Expand Down

0 comments on commit ff8b3ef

Please sign in to comment.