From 54eebd2f74c6f98e5979b098f832d24b0dcaeda7 Mon Sep 17 00:00:00 2001 From: Alec Rohloff Date: Fri, 29 Mar 2024 18:07:37 -0400 Subject: [PATCH] Replace deprecated std::sync::atomic::spin_loop_hint() --- src/lib.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index d636dc835..30ffc142e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1384,9 +1384,7 @@ where } INITIALIZING => { while STATE.load(Ordering::SeqCst) == INITIALIZING { - // TODO: replace with `hint::spin_loop` once MSRV is 1.49.0. - #[allow(deprecated)] - std::sync::atomic::spin_loop_hint(); + std::hint::spin_loop(); } Err(SetLoggerError(())) }