diff options
| author | Frank Plowman <[email protected]> | 2024-02-16 20:42:14 +0000 |
|---|---|---|
| committer | Frank Plowman <[email protected]> | 2024-02-16 20:42:14 +0000 |
| commit | c5f39d5c89240d17b0d7c8ee48fc48757c163bba (patch) | |
| tree | 784fe54b2b645859f22e7c8cfdf693032d2c04d2 | |
| parent | bcb0be21c180d4107e636083f5a1543a1f51447b (diff) | |
embassy-nrf: Use fully-qualified `core::mem::transmute`
| -rw-r--r-- | embassy-nrf/src/pdm.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/embassy-nrf/src/pdm.rs b/embassy-nrf/src/pdm.rs index 64d414d8f..d03315fb6 100644 --- a/embassy-nrf/src/pdm.rs +++ b/embassy-nrf/src/pdm.rs | |||
| @@ -4,7 +4,6 @@ | |||
| 4 | 4 | ||
| 5 | use core::future::poll_fn; | 5 | use core::future::poll_fn; |
| 6 | use core::marker::PhantomData; | 6 | use core::marker::PhantomData; |
| 7 | use core::mem; | ||
| 8 | use core::sync::atomic::{compiler_fence, Ordering}; | 7 | use core::sync::atomic::{compiler_fence, Ordering}; |
| 9 | use core::task::Poll; | 8 | use core::task::Poll; |
| 10 | 9 | ||
| @@ -150,7 +149,7 @@ impl<'d, T: Instance> Pdm<'d, T> { | |||
| 150 | let gain = gain.saturating_add(I7F1::from_bits(0x28)) | 149 | let gain = gain.saturating_add(I7F1::from_bits(0x28)) |
| 151 | .to_bits() | 150 | .to_bits() |
| 152 | .clamp(0, 0x50); | 151 | .clamp(0, 0x50); |
| 153 | unsafe { mem::transmute(gain) } | 152 | unsafe { core::mem::transmute(gain) } |
| 154 | }; | 153 | }; |
| 155 | let gain_left = gain_to_bits(gain_left); | 154 | let gain_left = gain_to_bits(gain_left); |
| 156 | let gain_right = gain_to_bits(gain_right); | 155 | let gain_right = gain_to_bits(gain_right); |
