From c0e40b887bf4975512cc40e13ea17cb57f34f099 Mon Sep 17 00:00:00 2001 From: Davide Della Giustina Date: Wed, 1 Mar 2023 20:57:13 +0000 Subject: [PATCH] Apply fix --- embassy-stm32/src/eth/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embassy-stm32/src/eth/mod.rs b/embassy-stm32/src/eth/mod.rs index b632861b..e1d7a09b 100644 --- a/embassy-stm32/src/eth/mod.rs +++ b/embassy-stm32/src/eth/mod.rs @@ -44,7 +44,7 @@ impl PacketQueue { // Allow to initialize a Self without requiring it to go on the stack pub fn init(this: &mut MaybeUninit) { unsafe { - this.as_mut_ptr().write_bytes(0u8, core::mem::size_of::()); + this.as_mut_ptr().write_bytes(0u8, 1); } } }