mirror of
https://github.com/rust-lang/log.git
synced 2025-10-02 23:34:32 +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 => {
|
INITIALIZING => {
|
||||||
while STATE.load(Ordering::SeqCst) == INITIALIZING {
|
while STATE.load(Ordering::SeqCst) == INITIALIZING {
|
||||||
// TODO: replace with `hint::spin_loop` once MSRV is 1.49.0.
|
std::hint::spin_loop();
|
||||||
#[allow(deprecated)]
|
|
||||||
std::sync::atomic::spin_loop_hint();
|
|
||||||
}
|
}
|
||||||
Err(SetLoggerError(()))
|
Err(SetLoggerError(()))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user