Skip to content

Commit

Permalink
Apply clippy suggestions for Rust 1.66
Browse files Browse the repository at this point in the history
  • Loading branch information
djc committed Dec 19, 2022
1 parent a1591e9 commit 900b0ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/offset/utc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +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)
NaiveDateTime::from_timestamp_opt(now.as_secs() as i64, now.subsec_nanos())
.unwrap();
DateTime::from_utc(naive, Utc)
}
Expand Down

0 comments on commit 900b0ab

Please sign in to comment.