When you do
cargo clippy --target thumbv6m-none-eabi
It says:
error[E0599]: no method named `compare_exchange` found for struct `core::sync::atomic::AtomicU8` in the current scope
--> /home/fluffy/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spin-0.9.8/src/once.rs:114:18
|
112 | match self
| ___________________-
113 | | .0
114 | | .compare_exchange(old as u8, new as u8, success, failure)
| | -^^^^^^^^^^^^^^^^ method not found in `AtomicU8`
| |_________________|
|
Issue seems to be on this line.
When you do
```
cargo clippy --target thumbv6m-none-eabi
```
It says:
```
error[E0599]: no method named `compare_exchange` found for struct `core::sync::atomic::AtomicU8` in the current scope
--> /home/fluffy/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spin-0.9.8/src/once.rs:114:18
|
112 | match self
| ___________________-
113 | | .0
114 | | .compare_exchange(old as u8, new as u8, success, failure)
| | -^^^^^^^^^^^^^^^^ method not found in `AtomicU8`
| |_________________|
|
```
Issue seems to be on [this line](https://github.com/zesterer/spin-rs/blob/master/src/once.rs#L115).