From 2a057c1197d70d1d9b31a090c28dd7b929fdb6ae Mon Sep 17 00:00:00 2001 From: Botahamec Date: Mon, 31 Jan 2022 09:42:47 -0500 Subject: Added ordering --- src/month.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/month.rs') 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, -- cgit v1.2.3