File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -41,8 +41,8 @@ pub enum DeviceError<BUS, CS> {
41
41
impl < BUS : Display , CS : Display > Display for DeviceError < BUS , CS > {
42
42
fn fmt ( & self , f : & mut Formatter ) -> fmt:: Result {
43
43
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}" ) ,
46
46
}
47
47
}
48
48
}
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ impl core::error::Error for ErrorKind {}
197
197
198
198
impl fmt:: Display for ErrorKind {
199
199
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
200
- write ! ( f, "{:?}" , self )
200
+ write ! ( f, "{self :?}" )
201
201
}
202
202
}
203
203
You can’t perform that action at this time.
0 commit comments