stm32/wpan: fix lifetime param
This commit is contained in:
parent
72fd648d92
commit
0122b813d3
@ -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>()) }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user