File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,6 @@ use crate::target::P0;
63
63
use crate :: target:: { P1 } ;
64
64
65
65
use crate :: hal:: digital:: v2:: { OutputPin , StatefulOutputPin , InputPin } ;
66
- use core:: convert:: Infallible ;
67
66
68
67
impl < MODE > Pin < MODE > {
69
68
/// Convert the pin to be a floating input
@@ -221,7 +220,7 @@ impl<MODE> Pin<MODE> {
221
220
}
222
221
223
222
impl < MODE > InputPin for Pin < Input < MODE > > {
224
- type Error = Infallible ;
223
+ type Error = ( ) ;
225
224
226
225
fn is_high ( & self ) -> Result < bool , Self :: Error > {
227
226
self . is_low ( ) . map ( |v| !v)
@@ -240,7 +239,7 @@ impl<MODE> InputPin for Pin<Input<MODE>> {
240
239
}
241
240
242
241
impl < MODE > OutputPin for Pin < Output < MODE > > {
243
- type Error = Infallible ;
242
+ type Error = ( ) ;
244
243
245
244
/// Set the output as high
246
245
fn set_high ( & mut self ) -> Result < ( ) , Self :: Error > {
You can’t perform that action at this time.
0 commit comments