Skip to content

Commit

Permalink
Merge pull request #625 from Catamantaloedis/hint_spin_loop
Browse files Browse the repository at this point in the history
Replace deprecated std::sync::atomic::spin_loop_hint()
  • Loading branch information
KodrAus authored Mar 30, 2024
2 parents db19094 + 54eebd2 commit 28d734b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(()))
}
Expand Down

0 comments on commit 28d734b

Please sign in to comment.