1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

sort: remove explicit enum values

This commit is contained in:
Joseph Crail 2016-03-25 00:50:51 -04:00
parent faedb2dd2e
commit 491320747b

View file

@ -217,19 +217,19 @@ fn human_numeric_size_compare(a: &String, b: &String) -> Ordering {
#[derive(Eq, Ord, PartialEq, PartialOrd)] #[derive(Eq, Ord, PartialEq, PartialOrd)]
enum Month { enum Month {
Unknown = 0, Unknown,
January = 1, January,
February = 2, February,
March = 3, March,
April = 4, April,
May = 5, May,
June = 6, June,
July = 7, July,
August = 8, August,
September = 9, September,
October = 10, October,
November = 11, November,
December = 12, December,
} }
/// Parse the beginning string into a Month, returning Month::Unknown on errors. /// Parse the beginning string into a Month, returning Month::Unknown on errors.