fix warnings from rust 1.77.0 upgrade

This commit is contained in:
bunnie 2024-03-29 09:45:49 +08:00
parent 2d68807d51
commit cc49867403

View file

@ -66,7 +66,7 @@ impl Swap {
{ {
#[cfg(baremetal)] #[cfg(baremetal)]
unsafe { unsafe {
f(&mut SWAP) f(&mut *core::ptr::addr_of_mut!(SWAP))
} }
#[cfg(not(baremetal))] #[cfg(not(baremetal))]