From 3d96b10b0cd0066d4269094852e458bbf80a9807 Mon Sep 17 00:00:00 2001 From: Liam Murphy Date: Mon, 5 Jul 2021 17:47:55 +1000 Subject: [PATCH] Elide lifetimes on `Peripheral::state` --- embassy-extras/src/peripheral_shared.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } }