diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-09-28 09:33:50 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-09-28 09:33:50 +0000 |
| commit | 77ece3f903735b50f265ddd43520c50e0f28c1a1 (patch) | |
| tree | 9e5062a69b273b6671ef1c1a15af62c7be5995ed | |
| parent | 9bb43ffe9adddb3497bb08d0730635fbd66cff94 (diff) | |
| parent | d7f7614b225da41477972b5fd287d10e6069846c (diff) | |
Merge #983
983: Remove subghz static lifetime requirement r=lulf a=lulf
Co-authored-by: Ulf Lilleengen <[email protected]>
| -rw-r--r-- | embassy-lora/src/stm32wl/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/embassy-lora/src/stm32wl/mod.rs b/embassy-lora/src/stm32wl/mod.rs index e28fa2c1a..8d5d19531 100644 --- a/embassy-lora/src/stm32wl/mod.rs +++ b/embassy-lora/src/stm32wl/mod.rs | |||
| @@ -234,15 +234,15 @@ fn configure_radio(radio: &mut SubGhz<'_, NoDma, NoDma>, config: SubGhzRadioConf | |||
| 234 | Ok(()) | 234 | Ok(()) |
| 235 | } | 235 | } |
| 236 | 236 | ||
| 237 | impl<RS: RadioSwitch> PhyRxTx for SubGhzRadio<'static, RS> { | 237 | impl<'d, RS: RadioSwitch> PhyRxTx for SubGhzRadio<'d, RS> { |
| 238 | type PhyError = RadioError; | 238 | type PhyError = RadioError; |
| 239 | 239 | ||
| 240 | type TxFuture<'m> = impl Future<Output = Result<u32, Self::PhyError>> + 'm where RS: 'm; | 240 | type TxFuture<'m> = impl Future<Output = Result<u32, Self::PhyError>> + 'm where Self: 'm; |
| 241 | fn tx<'m>(&'m mut self, config: TxConfig, buf: &'m [u8]) -> Self::TxFuture<'m> { | 241 | fn tx<'m>(&'m mut self, config: TxConfig, buf: &'m [u8]) -> Self::TxFuture<'m> { |
| 242 | async move { self.do_tx(config, buf).await } | 242 | async move { self.do_tx(config, buf).await } |
| 243 | } | 243 | } |
| 244 | 244 | ||
| 245 | type RxFuture<'m> = impl Future<Output = Result<(usize, RxQuality), Self::PhyError>> + 'm where RS: 'm; | 245 | type RxFuture<'m> = impl Future<Output = Result<(usize, RxQuality), Self::PhyError>> + 'm where Self: 'm; |
| 246 | fn rx<'m>(&'m mut self, config: RfConfig, buf: &'m mut [u8]) -> Self::RxFuture<'m> { | 246 | fn rx<'m>(&'m mut self, config: RfConfig, buf: &'m mut [u8]) -> Self::RxFuture<'m> { |
| 247 | async move { self.do_rx(config, buf).await } | 247 | async move { self.do_rx(config, buf).await } |
| 248 | } | 248 | } |
