Clippy no likey a match on bool
This commit is contained in:
parent
0e6d1d49b7
commit
efb0f3b015
|
@ -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 =>
|
||||||
|
|
Loading…
Reference in New Issue