diff options
| author | Liam Murphy <[email protected]> | 2021-07-05 17:47:55 +1000 |
|---|---|---|
| committer | Liam Murphy <[email protected]> | 2021-07-05 17:47:55 +1000 |
| commit | 3d96b10b0cd0066d4269094852e458bbf80a9807 (patch) | |
| tree | a4cf02f4eec71e39ae8cb4055bd950a81c80694a | |
| parent | 744e2cbb8a0b58eccf3a9708c8c28f1ef17e4771 (diff) | |
Elide lifetimes on `Peripheral::state`
| -rw-r--r-- | embassy-extras/src/peripheral_shared.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-extras/src/peripheral_shared.rs b/embassy-extras/src/peripheral_shared.rs index a9fca8ca6..d05ae0307 100644 --- a/embassy-extras/src/peripheral_shared.rs +++ b/embassy-extras/src/peripheral_shared.rs | |||
| @@ -68,7 +68,7 @@ impl<S: PeripheralStateUnchecked> Peripheral<S> { | |||
| 68 | this.irq_setup_done = true; | 68 | this.irq_setup_done = true; |
| 69 | } | 69 | } |
| 70 | 70 | ||
| 71 | pub fn state<'a>(self: Pin<&'a mut Self>) -> &'a S { | 71 | pub fn state(self: Pin<&mut Self>) -> &S { |
| 72 | &self.into_ref().get_ref().state | 72 | &self.into_ref().get_ref().state |
| 73 | } | 73 | } |
| 74 | } | 74 | } |
