Skip to content

Commit

Permalink
fix: remove un-needed unwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
SkuldNorniern committed Mar 13, 2024
1 parent 69efc2f commit 75f69a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net/parser/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub fn microseconds_to_timestamp(usec: u64) -> String {
let datetime = DateTime::<Utc>::from_naive_utc_and_offset(naive, Utc);

#[cfg(target_os = "windows")]
let datetime = DateTime::<Utc>::from_utc(naive.unwrap(), Utc);
let datetime = DateTime::<Utc>::from_utc(naive, Utc);

datetime.format("%Y-%m-%d_%H-%M-%S UTC").to_string()
}

0 comments on commit 75f69a8

Please sign in to comment.