aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src/eth/mod.rs
diff options
context:
space:
mode:
authorDavide Della Giustina <[email protected]>2023-03-01 20:57:13 +0000
committerDavide Della Giustina <[email protected]>2023-03-01 20:57:13 +0000
commitc0e40b887bf4975512cc40e13ea17cb57f34f099 (patch)
tree66291ff8279ff564aa426a886d68daf67028432e /embassy-stm32/src/eth/mod.rs
parent351e4407ef2c726ce78638306a0ebcbdf580d72c (diff)
Apply fix
Diffstat (limited to 'embassy-stm32/src/eth/mod.rs')
-rw-r--r--embassy-stm32/src/eth/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-stm32/src/eth/mod.rs b/embassy-stm32/src/eth/mod.rs
index b632861bf..e1d7a09b4 100644
--- a/embassy-stm32/src/eth/mod.rs
+++ b/embassy-stm32/src/eth/mod.rs
@@ -44,7 +44,7 @@ impl<const TX: usize, const RX: usize> PacketQueue<TX, RX> {
44 // Allow to initialize a Self without requiring it to go on the stack 44 // Allow to initialize a Self without requiring it to go on the stack
45 pub fn init(this: &mut MaybeUninit<Self>) { 45 pub fn init(this: &mut MaybeUninit<Self>) {
46 unsafe { 46 unsafe {
47 this.as_mut_ptr().write_bytes(0u8, core::mem::size_of::<Self>()); 47 this.as_mut_ptr().write_bytes(0u8, 1);
48 } 48 }
49 } 49 }
50} 50}