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 {}
8383impl embedded_hal:: serial:: Error for SerialError {
8484 fn kind ( & self ) -> embedded_hal:: serial:: ErrorKind {
8585 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
9088 }
9189}
9290
Original file line number Diff line number Diff line change @@ -165,10 +165,8 @@ impl From<io::Error> for SPIError {
165165impl embedded_hal:: spi:: Error for SPIError {
166166 fn kind ( & self ) -> embedded_hal:: spi:: ErrorKind {
167167 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
172170 }
173171}
174172
You can’t perform that action at this time.
0 commit comments