@@ -180,7 +180,7 @@ pub struct Pipe<'alloc, 'pipe, 'interrupt, Bus: UsbBus> {
180180 pub ( crate ) version : crate :: Version ,
181181}
182182
183- impl < ' alloc , ' pipe , ' interrupt , Bus : UsbBus > Pipe < ' alloc , ' pipe , ' interrupt , Bus > {
183+ impl < ' alloc , ' pipe , Bus : UsbBus > Pipe < ' alloc , ' pipe , ' _ , Bus > {
184184 pub ( crate ) fn new (
185185 read_endpoint : EndpointOut < ' alloc , Bus > ,
186186 write_endpoint : EndpointIn < ' alloc , Bus > ,
@@ -316,7 +316,10 @@ impl<'alloc, 'pipe, 'interrupt, Bus: UsbBus> Pipe<'alloc, 'pipe, 'interrupt, Bus
316316 // `solo ls` crashes here as it uses command 0x86
317317 Err ( _) => {
318318 info ! ( "Received invalid command." ) ;
319- self . start_sending_error_on_channel ( channel, AuthenticatorError :: InvalidCommand ) ;
319+ self . start_sending_error_on_channel (
320+ channel,
321+ AuthenticatorError :: InvalidCommand ,
322+ ) ;
320323 return ;
321324 }
322325 } ;
@@ -526,11 +529,7 @@ impl<'alloc, 'pipe, 'interrupt, Bus: UsbBus> Pipe<'alloc, 'pipe, 'interrupt, Bus
526529 }
527530
528531 _ => {
529- if request. command == Command :: Cbor {
530- self . needs_keepalive = true ;
531- } else {
532- self . needs_keepalive = false ;
533- }
532+ self . needs_keepalive = request. command == Command :: Cbor ;
534533 if self . interchange . state ( ) == interchange:: State :: Responded {
535534 info ! ( "dumping stale response" ) ;
536535 self . interchange . take_response ( ) ;
@@ -625,7 +624,7 @@ impl<'alloc, 'pipe, 'interrupt, Bus: UsbBus> Pipe<'alloc, 'pipe, 'interrupt, Bus
625624 message. len( )
626625 ) ;
627626 let response = Response :: from_request_and_size ( request, message. len ( ) ) ;
628- self . buffer [ ..message. len ( ) ] . copy_from_slice ( & message) ;
627+ self . buffer [ ..message. len ( ) ] . copy_from_slice ( message) ;
629628 self . start_sending ( response) ;
630629 }
631630 }
0 commit comments