From b4db2498de5a5b1f7d96116b627a0aee1f264e6b Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Thu, 15 May 2025 14:33:46 -0700 Subject: [PATCH] Remove deprecated call to `time`'s `set_soundness` function No longer required. --- Cargo.toml | 2 +- src/state.rs | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7d4f62cd..ad89b105 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -45,7 +45,7 @@ sendfd = "0.4.1" serde = {version = "1", features = ["derive"]} serde_json = "1" thiserror = "2.0.12" -time = {version = "0.3.30", features = ["macros", "formatting", "local-offset"]} +time = {version = "0.3.41", features = ["macros", "formatting", "local-offset"]} tiny-skia = "0.11" tracing = { version = "0.1.37", features = ["max_level_debug", "release_max_level_info"] } tracing-journald = "0.3.0" diff --git a/src/state.rs b/src/state.rs index 4ad82dd2..beb606dd 100644 --- a/src/state.rs +++ b/src/state.rs @@ -510,15 +510,7 @@ impl State { .with_context(|| "Failed to load languages") .unwrap(); - #[cfg(feature = "profile-with-tracy")] - unsafe { - time::util::local_offset::set_soundness(time::util::local_offset::Soundness::Unsound); - } let local_offset = UtcOffset::current_local_offset().expect("No yet multithreaded"); - #[cfg(feature = "profile-with-tracy")] - unsafe { - time::util::local_offset::set_soundness(time::util::local_offset::Soundness::Sound); - } let clock = Clock::new(); let config = Config::load(&handle); let compositor_state = CompositorState::new::(dh);