mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-10-30 13:50:53 +00:00
Apply fix
This commit is contained in:
parent
351e4407ef
commit
c0e40b887b
@ -44,7 +44,7 @@ impl<const TX: usize, const RX: usize> PacketQueue<TX, RX> {
|
||||
// Allow to initialize a Self without requiring it to go on the stack
|
||||
pub fn init(this: &mut MaybeUninit<Self>) {
|
||||
unsafe {
|
||||
this.as_mut_ptr().write_bytes(0u8, core::mem::size_of::<Self>());
|
||||
this.as_mut_ptr().write_bytes(0u8, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user