Skip to content

Commit af34009

Browse files
committed
Fixing format
1 parent 495c09a commit af34009

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

src/control_pipe.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,10 @@ impl<B: UsbBus> ControlPipe<'_, B> {
144144
}
145145
};
146146

147-
usb_trace!("Read {count} bytes on EP0-OUT: {:?}", &self.buf[i..(i + count)]);
147+
usb_trace!(
148+
"Read {count} bytes on EP0-OUT: {:?}",
149+
&self.buf[i..(i + count)]
150+
);
148151
self.i += count;
149152

150153
if self.i >= self.len {
@@ -254,8 +257,8 @@ impl<B: UsbBus> ControlPipe<'_, B> {
254257
ControlState::CompleteOut => {}
255258
_ => {
256259
usb_debug!("Cannot ACK, invalid state: {:?}", self.state);
257-
return Err(UsbError::InvalidState)
258-
},
260+
return Err(UsbError::InvalidState);
261+
}
259262
};
260263

261264
let _ = self.ep_in.write(&[]);
@@ -269,7 +272,7 @@ impl<B: UsbBus> ControlPipe<'_, B> {
269272
_ => {
270273
usb_debug!("EP0-IN cannot ACK, invalid state: {:?}", self.state);
271274
return Err(UsbError::InvalidState);
272-
},
275+
}
273276
};
274277

275278
let len = f(&mut self.buf[..])?;

src/device.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,7 @@ impl<B: UsbBus> UsbDevice<'_, B> {
244244

245245
self.device_state = UsbDeviceState::Addressed;
246246
}
247-
248-
},
247+
}
249248

250249
_ => (),
251250
};

0 commit comments

Comments
 (0)