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> {
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 [ ..] ) ?;
Original file line number Diff line number Diff 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 } ;
You can’t perform that action at this time.
0 commit comments