@@ -93,7 +93,7 @@ impl<B: UsbBus> TestClass<'_, B> {
9393 }
9494
9595 /// Convenience method to create a UsbDevice that is configured correctly for TestClass.
96- pub fn make_device < ' a , ' b > ( & ' a self , usb_bus : & ' b UsbBusAllocator < B > ) -> UsbDevice < ' b , B > {
96+ pub fn make_device < ' a > ( & self , usb_bus : & ' a UsbBusAllocator < B > ) -> UsbDevice < ' a , B > {
9797 self . make_device_builder ( usb_bus) . build ( )
9898 }
9999
@@ -108,10 +108,10 @@ impl<B: UsbBus> TestClass<'_, B> {
108108 ///
109109 /// on the returned builder. If you change the manufacturer, product, or serial number fields,
110110 /// the test host may misbehave.
111- pub fn make_device_builder < ' a , ' b > (
112- & ' a self ,
113- usb_bus : & ' b UsbBusAllocator < B > ,
114- ) -> UsbDeviceBuilder < ' b , B > {
111+ pub fn make_device_builder < ' a > (
112+ & self ,
113+ usb_bus : & ' a UsbBusAllocator < B > ,
114+ ) -> UsbDeviceBuilder < ' a , B > {
115115 UsbDeviceBuilder :: new ( usb_bus, UsbVidPid ( VID , PID ) )
116116 . manufacturer ( MANUFACTURER )
117117 . product ( PRODUCT )
@@ -311,7 +311,7 @@ impl<B: UsbBus> UsbClass<B> for TestClass<'_, B> {
311311
312312 xfer. accept ( ) . expect ( "control_out REQ_STORE_REQUEST failed" ) ;
313313 }
314- REQ_WRITE_BUFFER if xfer. data ( ) . len ( ) as usize <= self . control_buf . len ( ) => {
314+ REQ_WRITE_BUFFER if xfer. data ( ) . len ( ) <= self . control_buf . len ( ) => {
315315 assert_eq ! (
316316 xfer. data( ) . len( ) ,
317317 req. length as usize ,
0 commit comments