File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,10 @@ impl<B: UsbBus> ControlPipe<'_, B> {
144
144
}
145
145
} ;
146
146
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
+ ) ;
148
151
self . i += count;
149
152
150
153
if self . i >= self . len {
@@ -254,8 +257,8 @@ impl<B: UsbBus> ControlPipe<'_, B> {
254
257
ControlState :: CompleteOut => { }
255
258
_ => {
256
259
usb_debug ! ( "Cannot ACK, invalid state: {:?}" , self . state) ;
257
- return Err ( UsbError :: InvalidState )
258
- } ,
260
+ return Err ( UsbError :: InvalidState ) ;
261
+ }
259
262
} ;
260
263
261
264
let _ = self . ep_in . write ( & [ ] ) ;
@@ -269,7 +272,7 @@ impl<B: UsbBus> ControlPipe<'_, B> {
269
272
_ => {
270
273
usb_debug ! ( "EP0-IN cannot ACK, invalid state: {:?}" , self . state) ;
271
274
return Err ( UsbError :: InvalidState ) ;
272
- } ,
275
+ }
273
276
} ;
274
277
275
278
let len = f ( & mut self . buf [ ..] ) ?;
Original file line number Diff line number Diff line change @@ -244,8 +244,7 @@ impl<B: UsbBus> UsbDevice<'_, B> {
244
244
245
245
self . device_state = UsbDeviceState :: Addressed ;
246
246
}
247
-
248
- } ,
247
+ }
249
248
250
249
_ => ( ) ,
251
250
} ;
You can’t perform that action at this time.
0 commit comments