aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embassy-stm32-wpan/src/shci.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-stm32-wpan/src/shci.rs b/embassy-stm32-wpan/src/shci.rs
index b60158b1b..30d689716 100644
--- a/embassy-stm32-wpan/src/shci.rs
+++ b/embassy-stm32-wpan/src/shci.rs
@@ -113,7 +113,7 @@ pub struct ShciConfigParam {
113} 113}
114 114
115impl ShciConfigParam { 115impl ShciConfigParam {
116 pub fn payload<'a>(&self) -> &'a [u8] { 116 pub fn payload<'a>(&'a self) -> &'a [u8] {
117 unsafe { slice::from_raw_parts(self as *const _ as *const u8, mem::size_of::<Self>()) } 117 unsafe { slice::from_raw_parts(self as *const _ as *const u8, mem::size_of::<Self>()) }
118 } 118 }
119} 119}