Skip to content

Commit 3f83185

Browse files
authored
Merge pull request #671 from us-irs/clippy-update
clippy fixes
2 parents 5209452 + 93de810 commit 3f83185

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

embedded-hal-bus/src/spi/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ pub enum DeviceError<BUS, CS> {
4141
impl<BUS: Display, CS: Display> Display for DeviceError<BUS, CS> {
4242
fn fmt(&self, f: &mut Formatter) -> fmt::Result {
4343
match self {
44-
Self::Spi(bus) => write!(f, "SPI bus error: {}", bus),
45-
Self::Cs(cs) => write!(f, "SPI CS error: {}", cs),
44+
Self::Spi(bus) => write!(f, "SPI bus error: {bus}"),
45+
Self::Cs(cs) => write!(f, "SPI CS error: {cs}"),
4646
}
4747
}
4848
}

embedded-io/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ impl core::error::Error for ErrorKind {}
197197

198198
impl fmt::Display for ErrorKind {
199199
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
200-
write!(f, "{:?}", self)
200+
write!(f, "{self:?}")
201201
}
202202
}
203203

0 commit comments

Comments
 (0)