Skip to content

Commit cee5b66

Browse files
committed
Fix usb defmt Format constraint
1 parent 1fb1fa5 commit cee5b66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/usb.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ pub struct Peripheral<Dm: DmPin, Dp: DpPin> {
4949
}
5050

5151
#[cfg(feature = "defmt")]
52-
impl<Dm: DmPin, Dp: DpPin> defmt::Format for Peripheral<Dm, Dp> {
52+
impl<Dm: DmPin + defmt::Format, Dp: DpPin + defmt::Format> defmt::Format for Peripheral<Dm, Dp> {
5353
fn format(&self, f: defmt::Formatter) {
5454
defmt::write!(
5555
f,

0 commit comments

Comments
 (0)