File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 53
53
}
54
54
}
55
55
56
- /// Implementation of v1 StatefulOutputPin trait for v2 fallible pins
56
+ /// Implementation of `v1::StatefulOutputPin` trait for `v2::StatefulOutputPin` fallible pins
57
+ /// where errors will panic.
57
58
#[ cfg( feature = "unproven" ) ]
58
59
#[ allow( deprecated) ]
59
60
impl < T , E > v1:: StatefulOutputPin for OldOutputPin < T >
82
83
T : v2:: OutputPin < Error =E > ,
83
84
E : core:: fmt:: Debug ,
84
85
{
85
- /// Create an OldInputPin wrapper around a v2::InputPin
86
+ /// Create an ` OldInputPin` wrapper around a ` v2::InputPin`.
86
87
pub fn new ( pin : T ) -> Self {
87
88
Self { pin}
88
89
}
@@ -104,7 +105,8 @@ where
104
105
}
105
106
}
106
107
107
- /// Implementation of v0.2 InputPin trait for v0.3 fallible pins
108
+ /// Implementation of `v1::InputPin` trait for `v2::InputPin` fallible pins
109
+ /// where errors will panic.
108
110
#[ cfg( feature = "unproven" ) ]
109
111
#[ allow( deprecated) ]
110
112
impl < T , E > v1:: InputPin for OldInputPin < T >
@@ -248,4 +250,4 @@ mod tests {
248
250
i. is_low ( ) ;
249
251
}
250
252
251
- }
253
+ }
Original file line number Diff line number Diff line change 1
1
//! Digital I/O
2
2
//!
3
- //! Version 2 / vallible traits. Infallable implementations should set Error to `!`.
3
+ //! Version 2 / fallible traits. Infallable implementations should set Error to `!`.
4
4
5
5
/// Single digital push-pull output pin
6
6
pub trait OutputPin {
You can’t perform that action at this time.
0 commit comments