mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-09-30 13:50:37 +00:00
embassy-nrf: Use fully-qualified core::mem::transmute
This commit is contained in:
parent
bcb0be21c1
commit
c5f39d5c89
@ -4,7 +4,6 @@
|
||||
|
||||
use core::future::poll_fn;
|
||||
use core::marker::PhantomData;
|
||||
use core::mem;
|
||||
use core::sync::atomic::{compiler_fence, Ordering};
|
||||
use core::task::Poll;
|
||||
|
||||
@ -150,7 +149,7 @@ impl<'d, T: Instance> Pdm<'d, T> {
|
||||
let gain = gain.saturating_add(I7F1::from_bits(0x28))
|
||||
.to_bits()
|
||||
.clamp(0, 0x50);
|
||||
unsafe { mem::transmute(gain) }
|
||||
unsafe { core::mem::transmute(gain) }
|
||||
};
|
||||
let gain_left = gain_to_bits(gain_left);
|
||||
let gain_right = gain_to_bits(gain_right);
|
||||
|
Loading…
x
Reference in New Issue
Block a user