mirror of
https://github.com/bspeice/dtparse
synced 2025-07-03 14:54:57 -04:00
Add old rust versions to test agains
This commit is contained in:
@ -16,13 +16,13 @@ impl DayOfWeek {
|
||||
|
||||
pub fn to_numeral(&self) -> u32 {
|
||||
match self {
|
||||
DayOfWeek::Sunday => 0,
|
||||
DayOfWeek::Monday => 1,
|
||||
DayOfWeek::Tuesday => 2,
|
||||
DayOfWeek::Wednesday => 3,
|
||||
DayOfWeek::Thursday => 4,
|
||||
DayOfWeek::Friday => 5,
|
||||
DayOfWeek::Saturday => 6,
|
||||
&DayOfWeek::Sunday => 0,
|
||||
&DayOfWeek::Monday => 1,
|
||||
&DayOfWeek::Tuesday => 2,
|
||||
&DayOfWeek::Wednesday => 3,
|
||||
&DayOfWeek::Thursday => 4,
|
||||
&DayOfWeek::Friday => 5,
|
||||
&DayOfWeek::Saturday => 6,
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user