From 89e2e25d6f40310d7d6c7aa403148bfc7e1d6aa9 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Sun, 7 Aug 2022 23:25:50 +0200 Subject: [PATCH] rp/gpio: remove unused lifetimes. --- embassy-rp/src/gpio.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/embassy-rp/src/gpio.rs b/embassy-rp/src/gpio.rs index 9779f1378..a5df6068d 100644 --- a/embassy-rp/src/gpio.rs +++ b/embassy-rp/src/gpio.rs @@ -85,27 +85,27 @@ impl<'d, T: Pin> Input<'d, T> { } #[inline] - pub async fn wait_for_high<'a>(&mut self) { + pub async fn wait_for_high(&mut self) { self.pin.wait_for_high().await; } #[inline] - pub async fn wait_for_low<'a>(&mut self) { + pub async fn wait_for_low(&mut self) { self.pin.wait_for_low().await; } #[inline] - pub async fn wait_for_rising_edge<'a>(&mut self) { + pub async fn wait_for_rising_edge(&mut self) { self.pin.wait_for_rising_edge().await; } #[inline] - pub async fn wait_for_falling_edge<'a>(&mut self) { + pub async fn wait_for_falling_edge(&mut self) { self.pin.wait_for_falling_edge().await; } #[inline] - pub async fn wait_for_any_edge<'a>(&mut self) { + pub async fn wait_for_any_edge(&mut self) { self.pin.wait_for_any_edge().await; } } @@ -545,29 +545,29 @@ impl<'d, T: Pin> Flex<'d, T> { } #[inline] - pub async fn wait_for_high<'a>(&mut self) { + pub async fn wait_for_high(&mut self) { InputFuture::new(&mut self.pin, InterruptTrigger::LevelHigh).await; } #[inline] - pub async fn wait_for_low<'a>(&mut self) { + pub async fn wait_for_low(&mut self) { InputFuture::new(&mut self.pin, InterruptTrigger::LevelLow).await; } #[inline] - pub async fn wait_for_rising_edge<'a>(&mut self) { + pub async fn wait_for_rising_edge(&mut self) { self.wait_for_low().await; self.wait_for_high().await; } #[inline] - pub async fn wait_for_falling_edge<'a>(&mut self) { + pub async fn wait_for_falling_edge(&mut self) { self.wait_for_high().await; self.wait_for_low().await; } #[inline] - pub async fn wait_for_any_edge<'a>(&mut self) { + pub async fn wait_for_any_edge(&mut self) { if self.is_high() { self.wait_for_low().await; } else {