Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
eldruin committed Sep 20, 2023
1 parent 5a3989c commit b79942e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions src/serial.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,8 @@ impl std::error::Error for SerialError {}
impl embedded_hal::serial::Error for SerialError {
fn kind(&self) -> embedded_hal::serial::ErrorKind {
use embedded_hal::serial::ErrorKind::*;
match &self.err {
// TODO: match any errors here if we can find any that are relevant
_ => Other,
}
// TODO: match any errors here if we can find any that are relevant
Other
}
}

Expand Down
6 changes: 2 additions & 4 deletions src/spi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,8 @@ impl From<io::Error> for SPIError {
impl embedded_hal::spi::Error for SPIError {
fn kind(&self) -> embedded_hal::spi::ErrorKind {
use embedded_hal::spi::ErrorKind;
match self.err.kind() {
// TODO: match any errors here if we can find any that are relevant
_ => ErrorKind::Other,
}
// TODO: match any errors here if we can find any that are relevant
ErrorKind::Other
}
}

Expand Down

0 comments on commit b79942e

Please sign in to comment.