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 { let tzitem = Item::Fixed(
true => Fixed::TimezoneOffsetColonZ, if use_z {
false => Fixed::TimezoneOffsetColon Fixed::TimezoneOffsetColonZ
}); } else {
Fixed::TimezoneOffsetColon
}
);
match ssitem { match ssitem {
None => None =>