From 8b1ffb2cb7bd2e0c0f50eefb2391c15ae3050e73 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Wed, 14 Apr 2021 16:25:54 +0200 Subject: Remove Pin from GPIO traits --- embassy-traits/src/gpio.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'embassy-traits/src') diff --git a/embassy-traits/src/gpio.rs b/embassy-traits/src/gpio.rs index 4c3feac21..c4ae206cd 100644 --- a/embassy-traits/src/gpio.rs +++ b/embassy-traits/src/gpio.rs @@ -9,7 +9,7 @@ pub trait WaitForHigh { /// /// If the pin is already high, the future completes immediately. /// Otherwise, it completes when it becomes high. - fn wait_for_high<'a>(self: Pin<&'a mut Self>) -> Self::Future<'a>; + fn wait_for_high<'a>(&'a mut self) -> Self::Future<'a>; } /// Wait for a pin to become low. @@ -20,7 +20,7 @@ pub trait WaitForLow { /// /// If the pin is already low, the future completes immediately. /// Otherwise, it completes when it becomes low. - fn wait_for_low<'a>(self: Pin<&'a mut Self>) -> Self::Future<'a>; + fn wait_for_low<'a>(&'a mut self) -> Self::Future<'a>; } /// Wait for a rising edge (transition from low to high) @@ -28,7 +28,7 @@ pub trait WaitForRisingEdge { type Future<'a>: Future + 'a; /// Wait for a rising edge (transition from low to high) - fn wait_for_rising_edge<'a>(self: Pin<&'a mut Self>) -> Self::Future<'a>; + fn wait_for_rising_edge<'a>(&'a mut self) -> Self::Future<'a>; } /// Wait for a falling edge (transition from high to low) @@ -36,7 +36,7 @@ pub trait WaitForFallingEdge { type Future<'a>: Future + 'a; /// Wait for a falling edge (transition from high to low) - fn wait_for_falling_edge<'a>(self: Pin<&'a mut Self>) -> Self::Future<'a>; + fn wait_for_falling_edge<'a>(&'a mut self) -> Self::Future<'a>; } /// Wait for any edge (any transition, high to low or low to high) @@ -44,5 +44,5 @@ pub trait WaitForAnyEdge { type Future<'a>: Future + 'a; /// Wait for any edge (any transition, high to low or low to high) - fn wait_for_any_edge<'a>(self: Pin<&'a mut Self>) -> Self::Future<'a>; + fn wait_for_any_edge<'a>(&'a mut self) -> Self::Future<'a>; } -- cgit