stm32/wpan: fix lifetime param

This commit is contained in:
xoviat 2023-06-18 19:03:50 -05:00
parent 72fd648d92
commit 0122b813d3

View File

@ -113,7 +113,7 @@ pub struct ShciConfigParam {
} }
impl ShciConfigParam { impl ShciConfigParam {
pub fn payload<'a>(&self) -> &'a [u8] { pub fn payload<'a>(&'a self) -> &'a [u8] {
unsafe { slice::from_raw_parts(self as *const _ as *const u8, mem::size_of::<Self>()) } unsafe { slice::from_raw_parts(self as *const _ as *const u8, mem::size_of::<Self>()) }
} }
} }