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)]
|
||||
enum Month {
|
||||
Unknown = 0,
|
||||
January = 1,
|
||||
February = 2,
|
||||
March = 3,
|
||||
April = 4,
|
||||
May = 5,
|
||||
June = 6,
|
||||
July = 7,
|
||||
August = 8,
|
||||
September = 9,
|
||||
October = 10,
|
||||
November = 11,
|
||||
December = 12,
|
||||
Unknown,
|
||||
January,
|
||||
February,
|
||||
March,
|
||||
April,
|
||||
May,
|
||||
June,
|
||||
July,
|
||||
August,
|
||||
September,
|
||||
October,
|
||||
November,
|
||||
December,
|
||||
}
|
||||
|
||||
/// Parse the beginning string into a Month, returning Month::Unknown on errors.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue