Clippy no likey a match on bool

This commit is contained in:
David Kellum 2018-01-12 16:19:26 -08:00
parent 0e6d1d49b7
commit efb0f3b015
1 changed files with 7 additions and 4 deletions

View File

@ -309,10 +309,13 @@ impl<Tz: TimeZone> DateTime<Tz> where Tz::Offset: fmt::Display {
}
};
let tzitem = Item::Fixed(match use_z {
true => Fixed::TimezoneOffsetColonZ,
false => Fixed::TimezoneOffsetColon
});
let tzitem = Item::Fixed(
if use_z {
Fixed::TimezoneOffsetColonZ
} else {
Fixed::TimezoneOffsetColon
}
);
match ssitem {
None =>