diff --git a/src/lib.rs b/src/lib.rs index bbfb1ed31..fd680de75 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1362,6 +1362,8 @@ 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(); } Err(SetLoggerError(()))