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 =>