From d7ff381d7faaded70fe656187112b85c1bca67df Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Fri, 29 Nov 2019 17:58:40 -0500 Subject: [PATCH] Bugfix --- src/lib.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index f783e61..bab9a80 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -84,10 +84,7 @@ use chrono::Local; use chrono::NaiveDate; use chrono::NaiveDateTime; use chrono::NaiveTime; -use chrono::Offset; -use chrono::TimeZone; use chrono::Timelike; -use chrono_tz::Tz; use num_traits::cast::ToPrimitive; use rust_decimal::Decimal; use rust_decimal::Error as DecimalError; @@ -976,7 +973,7 @@ impl Parser { Ok(Some(FixedOffset::east( *tzinfos.get(res.tzname.as_ref().unwrap()).unwrap(), ))) - } else if res.tzname.is_some() { + } else if let Some(tzname) = res.tzname.as_ref() { println!("tzname {} identified but not understood.", tzname); Ok(None) } else {