Fix Clippy lints: match_same_arms
This commit is contained in:
parent
0dc4e3a416
commit
330504792b
|
@ -237,7 +237,7 @@ impl<'a> Iterator for StrftimeItems<'a> {
|
||||||
'Y' => num0!(Year),
|
'Y' => num0!(Year),
|
||||||
'Z' => fix!(TimezoneName),
|
'Z' => fix!(TimezoneName),
|
||||||
'a' => fix!(ShortWeekdayName),
|
'a' => fix!(ShortWeekdayName),
|
||||||
'b' => fix!(ShortMonthName),
|
'b' | 'h' => fix!(ShortMonthName),
|
||||||
'c' => recons![fix!(ShortWeekdayName), sp!(" "), fix!(ShortMonthName),
|
'c' => recons![fix!(ShortWeekdayName), sp!(" "), fix!(ShortMonthName),
|
||||||
sp!(" "), nums!(Day), sp!(" "), num0!(Hour), lit!(":"),
|
sp!(" "), nums!(Day), sp!(" "), num0!(Hour), lit!(":"),
|
||||||
num0!(Minute), lit!(":"), num0!(Second), sp!(" "), num0!(Year)],
|
num0!(Minute), lit!(":"), num0!(Second), sp!(" "), num0!(Year)],
|
||||||
|
@ -245,7 +245,6 @@ impl<'a> Iterator for StrftimeItems<'a> {
|
||||||
'e' => nums!(Day),
|
'e' => nums!(Day),
|
||||||
'f' => num0!(Nanosecond),
|
'f' => num0!(Nanosecond),
|
||||||
'g' => num0!(IsoYearMod100),
|
'g' => num0!(IsoYearMod100),
|
||||||
'h' => fix!(ShortMonthName),
|
|
||||||
'j' => num0!(Ordinal),
|
'j' => num0!(Ordinal),
|
||||||
'k' => nums!(Hour),
|
'k' => nums!(Hour),
|
||||||
'l' => nums!(Hour12),
|
'l' => nums!(Hour12),
|
||||||
|
|
Loading…
Reference in New Issue