@@ -30,7 +30,7 @@ pub trait Wait: embedded_hal::digital::ErrorType {
30
30
/// # Note for implementers
31
31
/// The pin may have switched back to low before the task was run after
32
32
/// being woken. The future should still resolve in that case.
33
- fn wait_for_high<'a>(&'a mut self) -> Self::WaitForHighFuture<'a >;
33
+ fn wait_for_high(& mut self) -> Self::WaitForHighFuture<'_ >;
34
34
35
35
/// The future returned by `wait_for_low`.
36
36
type WaitForLowFuture<'a>: Future<Output = Result<(), Self::Error>>
@@ -42,7 +42,7 @@ pub trait Wait: embedded_hal::digital::ErrorType {
42
42
/// # Note for implementers
43
43
/// The pin may have switched back to high before the task was run after
44
44
/// being woken. The future should still resolve in that case.
45
- fn wait_for_low<'a>(&'a mut self) -> Self::WaitForLowFuture<'a >;
45
+ fn wait_for_low(& mut self) -> Self::WaitForLowFuture<'_ >;
46
46
47
47
/// The future returned from `wait_for_rising_edge`.
48
48
type WaitForRisingEdgeFuture<'a>: Future<Output = Result<(), Self::Error>>
@@ -53,7 +53,7 @@ pub trait Wait: embedded_hal::digital::ErrorType {
53
53
///
54
54
/// If the pin is already high, this does *not* return immediately, it'll wait for the
55
55
/// pin to go low and then high again.
56
- fn wait_for_rising_edge<'a>(&'a mut self) -> Self::WaitForRisingEdgeFuture<'a >;
56
+ fn wait_for_rising_edge(& mut self) -> Self::WaitForRisingEdgeFuture<'_ >;
57
57
58
58
/// The future returned from `wait_for_falling_edge`.
59
59
type WaitForFallingEdgeFuture<'a>: Future<Output = Result<(), Self::Error>>
@@ -64,45 +64,45 @@ pub trait Wait: embedded_hal::digital::ErrorType {
64
64
///
65
65
/// If the pin is already low, this does *not* return immediately, it'll wait for the
66
66
/// pin to go high and then low again.
67
- fn wait_for_falling_edge<'a>(&'a mut self) -> Self::WaitForFallingEdgeFuture<'a >;
67
+ fn wait_for_falling_edge(& mut self) -> Self::WaitForFallingEdgeFuture<'_ >;
68
68
69
69
/// The future returned from `wait_for_any_edge`.
70
70
type WaitForAnyEdgeFuture<'a>: Future<Output = Result<(), Self::Error>>
71
71
where
72
72
Self: 'a;
73
73
74
74
/// Wait for the pin to undergo any transition, i.e low to high OR high to low.
75
- fn wait_for_any_edge<'a>(&'a mut self) -> Self::WaitForAnyEdgeFuture<'a >;
75
+ fn wait_for_any_edge(& mut self) -> Self::WaitForAnyEdgeFuture<'_ >;
76
76
}
77
77
78
78
impl<T: Wait> Wait for &mut T {
79
79
type WaitForHighFuture<'a> = T::WaitForHighFuture<'a> where Self: 'a;
80
80
81
- fn wait_for_high<'a>(&'a mut self) -> Self::WaitForHighFuture<'a > {
81
+ fn wait_for_high(& mut self) -> Self::WaitForHighFuture<'_ > {
82
82
T::wait_for_high(self)
83
83
}
84
84
85
85
type WaitForLowFuture<'a> = T::WaitForLowFuture<'a> where Self: 'a;
86
86
87
- fn wait_for_low<'a>(&'a mut self) -> Self::WaitForLowFuture<'a > {
87
+ fn wait_for_low(& mut self) -> Self::WaitForLowFuture<'_ > {
88
88
T::wait_for_low(self)
89
89
}
90
90
91
91
type WaitForRisingEdgeFuture<'a> = T::WaitForRisingEdgeFuture<'a> where Self: 'a;
92
92
93
- fn wait_for_rising_edge<'a>(&'a mut self) -> Self::WaitForRisingEdgeFuture<'a > {
93
+ fn wait_for_rising_edge(& mut self) -> Self::WaitForRisingEdgeFuture<'_ > {
94
94
T::wait_for_rising_edge(self)
95
95
}
96
96
97
97
type WaitForFallingEdgeFuture<'a> = T::WaitForFallingEdgeFuture<'a> where Self: 'a;
98
98
99
- fn wait_for_falling_edge<'a>(&'a mut self) -> Self::WaitForFallingEdgeFuture<'a > {
99
+ fn wait_for_falling_edge(& mut self) -> Self::WaitForFallingEdgeFuture<'_ > {
100
100
T::wait_for_falling_edge(self)
101
101
}
102
102
103
103
type WaitForAnyEdgeFuture<'a> = T::WaitForAnyEdgeFuture<'a> where Self: 'a;
104
104
105
- fn wait_for_any_edge<'a>(&'a mut self) -> Self::WaitForAnyEdgeFuture<'a > {
105
+ fn wait_for_any_edge(& mut self) -> Self::WaitForAnyEdgeFuture<'_ > {
106
106
T::wait_for_any_edge(self)
107
107
}
108
108
}
0 commit comments