diff options
| author | xoviat <[email protected]> | 2023-06-18 19:03:50 -0500 |
|---|---|---|
| committer | xoviat <[email protected]> | 2023-06-18 19:03:50 -0500 |
| commit | 0122b813d3dfe90bad7d307f4f0c7adcbae0a7a5 (patch) | |
| tree | 3c8a4041dec64cfb0e6634daa604e6a21853c60b | |
| parent | 72fd648d92738546b03166922defd4bee2d5fa9d (diff) | |
stm32/wpan: fix lifetime param
| -rw-r--r-- | embassy-stm32-wpan/src/shci.rs | 2 |
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 | ||
| 115 | impl ShciConfigParam { | 115 | impl 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 | } |
