From 93e032d4515bc665e8a971b7eab2fbb5ae7c73ce Mon Sep 17 00:00:00 2001 From: Alexander Gil Date: Tue, 3 Dec 2024 19:48:03 +0100 Subject: [PATCH] fix: Remove deprecated `set_soundness` from time 0.3.37 It is not longer needed. More info: https://github.com/time-rs/time/blob/main/CHANGELOG.md#0337-2024-12-03 Signed-off-by: Alexander Gil --- src/timer.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/timer.rs b/src/timer.rs index 58517ab..b638ea8 100644 --- a/src/timer.rs +++ b/src/timer.rs @@ -177,11 +177,6 @@ mod tests { #[cfg(not(target_os = "macos"))] #[test] fn test_parse_end_time() { - // Workaround `OffsetDateTime::now_local()` failing in tests: - // https://github.com/time-rs/time/blob/main/CHANGELOG.md#0318-2023-02-16 - unsafe { - time::util::local_offset::set_soundness(time::util::local_offset::Soundness::Unsound); - } let now = OffsetDateTime::now_local().ok().unwrap(); let date = parse_end_time("12:00").unwrap(); @@ -194,11 +189,6 @@ mod tests { #[cfg(not(target_os = "macos"))] #[test] fn test_parse_end_time_leading_zero() { - // Workaround `OffsetDateTime::now_local()` failing in tests: - // https://github.com/time-rs/time/blob/main/CHANGELOG.md#0318-2023-02-16 - unsafe { - time::util::local_offset::set_soundness(time::util::local_offset::Soundness::Unsound); - } let now = OffsetDateTime::now_local().ok().unwrap(); let date = parse_end_time("9:30").unwrap();