From 330504792b796a536ec8465dc814acd8cf7db196 Mon Sep 17 00:00:00 2001 From: Brandon W Maister Date: Fri, 23 Jun 2017 16:02:07 -0500 Subject: [PATCH] Fix Clippy lints: match_same_arms --- src/format/strftime.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/format/strftime.rs b/src/format/strftime.rs index fdf490c..4e015d3 100644 --- a/src/format/strftime.rs +++ b/src/format/strftime.rs @@ -237,7 +237,7 @@ impl<'a> Iterator for StrftimeItems<'a> { 'Y' => num0!(Year), 'Z' => fix!(TimezoneName), 'a' => fix!(ShortWeekdayName), - 'b' => fix!(ShortMonthName), + 'b' | 'h' => fix!(ShortMonthName), 'c' => recons![fix!(ShortWeekdayName), sp!(" "), fix!(ShortMonthName), sp!(" "), nums!(Day), sp!(" "), num0!(Hour), lit!(":"), num0!(Minute), lit!(":"), num0!(Second), sp!(" "), num0!(Year)], @@ -245,7 +245,6 @@ impl<'a> Iterator for StrftimeItems<'a> { 'e' => nums!(Day), 'f' => num0!(Nanosecond), 'g' => num0!(IsoYearMod100), - 'h' => fix!(ShortMonthName), 'j' => num0!(Ordinal), 'k' => nums!(Hour), 'l' => nums!(Hour12),