embassy-nrf: Use fully-qualified core::mem::transmute

This commit is contained in:
Frank Plowman 2024-02-16 20:42:14 +00:00
parent bcb0be21c1
commit c5f39d5c89
No known key found for this signature in database
GPG key ID: EE35607A4B0031A4

View file

@ -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);