From 75f69a848a18daf4e4080a9d880398cf0a382621 Mon Sep 17 00:00:00 2001 From: SkuldNorniern Date: Wed, 13 Mar 2024 09:33:16 +0900 Subject: [PATCH] fix: remove un-needed `unwrap` --- src/net/parser/time.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/parser/time.rs b/src/net/parser/time.rs index 0d10846..79c5ac8 100644 --- a/src/net/parser/time.rs +++ b/src/net/parser/time.rs @@ -16,7 +16,7 @@ pub fn microseconds_to_timestamp(usec: u64) -> String { let datetime = DateTime::::from_naive_utc_and_offset(naive, Utc); #[cfg(target_os = "windows")] - let datetime = DateTime::::from_utc(naive.unwrap(), Utc); + let datetime = DateTime::::from_utc(naive, Utc); datetime.format("%Y-%m-%d_%H-%M-%S UTC").to_string() }