File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/r3_support_rp2040/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -166,15 +166,15 @@ fn map_usb_error_to_nb_error(e: usb_device::UsbError) -> nb::Error<core::convert
166
166
| usb_device:: UsbError :: EndpointOverflow
167
167
| usb_device:: UsbError :: Unsupported
168
168
| usb_device:: UsbError :: InvalidEndpoint
169
- | usb_device:: UsbError :: EndpointMemoryOverflow => unreachable ! ( "{:?}" , e ) ,
169
+ | usb_device:: UsbError :: EndpointMemoryOverflow => unreachable ! ( "{e :?}" ) ,
170
170
// I think the following ones are protocol errors? I'm not sure
171
171
// if they can be returned by `write` and `flush`.
172
172
//
173
173
// It's really a bad idea to gather all error codes in a single `enum`
174
174
// without meticulously documenting how and when each of them will be
175
175
// returned.
176
176
usb_device:: UsbError :: ParseError | usb_device:: UsbError :: InvalidState => {
177
- panic ! ( "{:?} is probably unexpected, but I'm not sure" , e )
177
+ panic ! ( "{e :?} is probably unexpected, but I'm not sure" )
178
178
}
179
179
}
180
180
}
You can’t perform that action at this time.
0 commit comments