From efb0f3b01565abaf44c49d1dac96c63ba8ef59af Mon Sep 17 00:00:00 2001 From: David Kellum Date: Fri, 12 Jan 2018 16:19:26 -0800 Subject: [PATCH] Clippy no likey a match on bool --- src/datetime.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/datetime.rs b/src/datetime.rs index 41f30b3..7ed0d31 100644 --- a/src/datetime.rs +++ b/src/datetime.rs @@ -309,10 +309,13 @@ impl DateTime 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 =>