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> {
4141impl < 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}
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ impl core::error::Error for ErrorKind {}
197197
198198impl 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
You can’t perform that action at this time.
0 commit comments