Skip to content

Commit b79942e

Browse files
committed
Fix clippy warnings
1 parent 5a3989c commit b79942e

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

src/serial.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,8 @@ impl std::error::Error for SerialError {}
8383
impl 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

src/spi.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,8 @@ impl From<io::Error> for SPIError {
165165
impl 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

0 commit comments

Comments
 (0)