@@ -108,7 +108,7 @@ where
108108 SPI : spi:: ErrorType ,
109109{
110110 fn fmt ( & self , f : & mut Formatter < ' _ > ) -> core:: fmt:: Result {
111- write ! ( f, "{:?}" , self )
111+ write ! ( f, "{self :?}" )
112112 }
113113}
114114
@@ -124,19 +124,19 @@ where
124124{
125125 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
126126 match self {
127- Error :: Spi ( error) => write ! ( f, "Spi({:?})" , error ) ,
127+ Error :: Spi ( error) => write ! ( f, "Spi({error :?})" ) ,
128128 Error :: Fcs => write ! ( f, "Fcs" ) ,
129129 Error :: Phy => write ! ( f, "Phy" ) ,
130130 Error :: BufferTooSmall { required_len } => {
131- write ! ( f, "BufferTooSmall {{ required_len: {:?} }}" , required_len , )
131+ write ! ( f, "BufferTooSmall {{ required_len: {required_len :?} }}" )
132132 }
133133 Error :: ReedSolomon => write ! ( f, "ReedSolomon" ) ,
134134 Error :: FrameWaitTimeout => write ! ( f, "FrameWaitTimeout" ) ,
135135 Error :: Overrun => write ! ( f, "Overrun" ) ,
136136 Error :: PreambleDetectionTimeout => write ! ( f, "PreambleDetectionTimeout" ) ,
137137 Error :: SfdTimeout => write ! ( f, "SfdTimeout" ) ,
138138 Error :: FrameFilteringRejection => write ! ( f, "FrameFilteringRejection" ) ,
139- Error :: Frame ( error) => write ! ( f, "Frame({:?})" , error ) ,
139+ Error :: Frame ( error) => write ! ( f, "Frame({error :?})" ) ,
140140 Error :: DelayedSendTooLate => write ! ( f, "DelayedSendTooLate" ) ,
141141 Error :: DelayedSendPowerUpWarning => write ! ( f, "DelayedSendPowerUpWarning" ) ,
142142 Error :: InvalidConfiguration => write ! ( f, "InvalidConfiguration" ) ,
@@ -153,7 +153,6 @@ where
153153}
154154
155155#[ cfg( feature = "defmt" ) ]
156-
157156// We can't derive this implementation, as `Debug` is only implemented
158157// conditionally for `ll::Debug`.
159158impl < SPI > Format for Error < SPI >
@@ -167,7 +166,7 @@ where
167166 Error :: Fcs => defmt:: write!( f, "Fcs" ) ,
168167 Error :: Phy => defmt:: write!( f, "Phy" ) ,
169168 Error :: BufferTooSmall { required_len } => {
170- defmt:: write!( f, "BufferTooSmall {{ required_len: {:?} }}" , required_len, )
169+ defmt:: write!( f, "BufferTooSmall {{ required_len: {:?} }}" , required_len)
171170 }
172171 Error :: ReedSolomon => defmt:: write!( f, "ReedSolomon" ) ,
173172 Error :: FrameWaitTimeout => defmt:: write!( f, "FrameWaitTimeout" ) ,
0 commit comments