summaryrefslogtreecommitdiff
path: root/src/month.rs
diff options
context:
space:
mode:
authorBotahamec <botahamec@outlook.com>2022-01-31 09:42:47 -0500
committerBotahamec <botahamec@outlook.com>2022-01-31 09:42:47 -0500
commit2a057c1197d70d1d9b31a090c28dd7b929fdb6ae (patch)
treebf8323ac8ef1ddc88853301e718615e542c35e4b /src/month.rs
parent923e30b1bac5485075df893e8c5ef2d0346bf251 (diff)
Added ordering
Diffstat (limited to 'src/month.rs')
-rw-r--r--src/month.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/month.rs b/src/month.rs
index ebb95e1..4d988b8 100644
--- a/src/month.rs
+++ b/src/month.rs
@@ -7,7 +7,7 @@ use self::Month::*;
use core::str::FromStr;
/// Months of the year
-#[derive(Copy, Clone, Eq, PartialEq, Hash, Debug, Display)]
+#[derive(Copy, Clone, Eq, PartialEq, Hash, Debug, Display, PartialOrd, Ord)]
#[repr(u8)]
pub enum Month {
January = 1,