aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxoviat <[email protected]>2023-06-18 19:03:50 -0500
committerxoviat <[email protected]>2023-06-18 19:03:50 -0500
commit0122b813d3dfe90bad7d307f4f0c7adcbae0a7a5 (patch)
tree3c8a4041dec64cfb0e6634daa604e6a21853c60b
parent72fd648d92738546b03166922defd4bee2d5fa9d (diff)
stm32/wpan: fix lifetime param
-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}