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:
parent
faedb2dd2e
commit
491320747b
1 changed files with 13 additions and 13 deletions
|
@ -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.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue