mirror of
https://github.com/openharmony/third_party_rust_log.git
synced 2026-07-19 19:43:45 -04:00
Merge pull request #449 from Thomasdezeeuw/silence_spin_loop_warning
Allow use of deprecated atomic::spin_loop_hint
This commit is contained in:
@@ -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(()))
|
||||
|
||||
Reference in New Issue
Block a user