diff --git a/embassy-extras/src/peripheral_shared.rs b/embassy-extras/src/peripheral_shared.rs index a9fca8ca..d05ae030 100644 --- a/embassy-extras/src/peripheral_shared.rs +++ b/embassy-extras/src/peripheral_shared.rs @@ -68,7 +68,7 @@ impl Peripheral { this.irq_setup_done = true; } - pub fn state<'a>(self: Pin<&'a mut Self>) -> &'a S { + pub fn state(self: Pin<&mut Self>) -> &S { &self.into_ref().get_ref().state } }