Skip to content

Commit c89cf2e

Browse files
committed
refactor(support_rp2040): inline format args
Ditto.
1 parent 9d065b6 commit c89cf2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/r3_support_rp2040/src/usbstdio.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,15 +166,15 @@ fn map_usb_error_to_nb_error(e: usb_device::UsbError) -> nb::Error<core::convert
166166
| usb_device::UsbError::EndpointOverflow
167167
| usb_device::UsbError::Unsupported
168168
| usb_device::UsbError::InvalidEndpoint
169-
| usb_device::UsbError::EndpointMemoryOverflow => unreachable!("{:?}", e),
169+
| usb_device::UsbError::EndpointMemoryOverflow => unreachable!("{e:?}"),
170170
// I think the following ones are protocol errors? I'm not sure
171171
// if they can be returned by `write` and `flush`.
172172
//
173173
// It's really a bad idea to gather all error codes in a single `enum`
174174
// without meticulously documenting how and when each of them will be
175175
// returned.
176176
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")
178178
}
179179
}
180180
}

0 commit comments

Comments
 (0)