File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -83,10 +83,8 @@ impl std::error::Error for SerialError {}
83
83
impl embedded_hal:: serial:: Error for SerialError {
84
84
fn kind ( & self ) -> embedded_hal:: serial:: ErrorKind {
85
85
use embedded_hal:: serial:: ErrorKind :: * ;
86
- match & self . err {
87
- // TODO: match any errors here if we can find any that are relevant
88
- _ => Other ,
89
- }
86
+ // TODO: match any errors here if we can find any that are relevant
87
+ Other
90
88
}
91
89
}
92
90
Original file line number Diff line number Diff line change @@ -165,10 +165,8 @@ impl From<io::Error> for SPIError {
165
165
impl embedded_hal:: spi:: Error for SPIError {
166
166
fn kind ( & self ) -> embedded_hal:: spi:: ErrorKind {
167
167
use embedded_hal:: spi:: ErrorKind ;
168
- match self . err . kind ( ) {
169
- // TODO: match any errors here if we can find any that are relevant
170
- _ => ErrorKind :: Other ,
171
- }
168
+ // TODO: match any errors here if we can find any that are relevant
169
+ ErrorKind :: Other
172
170
}
173
171
}
174
172
You can’t perform that action at this time.
0 commit comments