Skip to content

Commit cd497a9

Browse files
committed
Use stabilized hint::spin_loop instead of deprecated atomic::spin_loop_hint
1 parent 679eaa1 commit cd497a9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Unreleased
22

3+
- Use stabilized `hint::spin_loop` instead of deprecated `atomic::spin_loop_hint`
4+
35
# 0.2.10 – 2020-10-01
46

57
- Fix default feature breakage ([#11](https://github.com/rust-osdev/uart_16550/pull/11))

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ use x86_64::instructions::port::Port;
2727
macro_rules! wait_for {
2828
($cond:expr) => {
2929
while !$cond {
30-
core::sync::atomic::spin_loop_hint()
30+
core::hint::spin_loop()
3131
}
3232
};
3333
}

0 commit comments

Comments
 (0)