mirror of
https://github.com/rust-lang/log.git
synced 2025-09-29 05:50:31 +00:00
Merge pull request #625 from Catamantaloedis/hint_spin_loop
Replace deprecated std::sync::atomic::spin_loop_hint()
This commit is contained in:
commit
28d734b0c4
@ -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(()))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user