@@ -16,7 +16,6 @@ use libtock_platform::{
1616/// let pin = gpio::Gpio::get_pin(0).unwrap().make_output().unwrap();
1717/// let _ = pin.set();
1818/// ```
19-
2019#[ derive( Copy , Clone , Eq , PartialEq , Debug ) ]
2120pub enum GpioState {
2221 Low = 0 ,
@@ -145,7 +144,7 @@ pub struct OutputPin<'a, S: Syscalls> {
145144 pin : & ' a Pin < S > ,
146145}
147146
148- impl < ' a , S : Syscalls > OutputPin < ' a , S > {
147+ impl < S : Syscalls > OutputPin < ' _ , S > {
149148 pub fn toggle ( & mut self ) -> Result < ( ) , ErrorCode > {
150149 Gpio :: < S > :: toggle ( self . pin . pin_number )
151150 }
@@ -162,7 +161,7 @@ pub struct InputPin<'a, S: Syscalls, P: Pull> {
162161 _pull : PhantomData < P > ,
163162}
164163
165- impl < ' a , S : Syscalls , P : Pull > InputPin < ' a , S , P > {
164+ impl < S : Syscalls , P : Pull > InputPin < ' _ , S , P > {
166165 pub fn read ( & self ) -> Result < GpioState , ErrorCode > {
167166 Gpio :: < S > :: read ( self . pin . pin_number )
168167 }
@@ -232,12 +231,12 @@ impl<S: Syscalls> Gpio<S> {
232231}
233232
234233#[ cfg( feature = "rust_embedded" ) ]
235- impl < ' a , S : Syscalls > embedded_hal:: digital:: ErrorType for OutputPin < ' a , S > {
234+ impl < S : Syscalls > embedded_hal:: digital:: ErrorType for OutputPin < ' _ , S > {
236235 type Error = ErrorCode ;
237236}
238237
239238#[ cfg( feature = "rust_embedded" ) ]
240- impl < ' a , S : Syscalls > embedded_hal:: digital:: OutputPin for OutputPin < ' a , S > {
239+ impl < S : Syscalls > embedded_hal:: digital:: OutputPin for OutputPin < ' _ , S > {
241240 fn set_low ( & mut self ) -> Result < ( ) , Self :: Error > {
242241 self . clear ( )
243242 }
0 commit comments