Skip to content

Commit 28d734b

Browse files
authored
Merge pull request #625 from Catamantaloedis/hint_spin_loop
Replace deprecated std::sync::atomic::spin_loop_hint()
2 parents db19094 + 54eebd2 commit 28d734b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1384,9 +1384,7 @@ where
13841384
}
13851385
INITIALIZING => {
13861386
while STATE.load(Ordering::SeqCst) == INITIALIZING {
1387-
// TODO: replace with `hint::spin_loop` once MSRV is 1.49.0.
1388-
#[allow(deprecated)]
1389-
std::sync::atomic::spin_loop_hint();
1387+
std::hint::spin_loop();
13901388
}
13911389
Err(SetLoggerError(()))
13921390
}

0 commit comments

Comments
 (0)