From 65e26299173b2730c6fbc605453159476c41f0a2 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Mon, 19 Dec 2022 09:46:34 +0100 Subject: [PATCH] Apply clippy suggestions for Rust 1.66 --- src/offset/utc.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/offset/utc.rs b/src/offset/utc.rs index 812d7b062e..ee3e70a0bc 100644 --- a/src/offset/utc.rs +++ b/src/offset/utc.rs @@ -68,8 +68,7 @@ impl Utc { let now = SystemTime::now().duration_since(UNIX_EPOCH).expect("system time before Unix epoch"); let naive = - NaiveDateTime::from_timestamp_opt(now.as_secs() as i64, now.subsec_nanos() as u32) - .unwrap(); + NaiveDateTime::from_timestamp_opt(now.as_secs() as i64, now.subsec_nanos()).unwrap(); DateTime::from_utc(naive, Utc) }