@@ -46,11 +46,11 @@ pub struct TestClass<'a, B: UsbBus> {
4646
4747pub const VID : u16 = 0x16c0 ;
4848pub const PID : u16 = 0x05dc ;
49- pub const MANUFACTURER : & ' static str = "TestClass Manufacturer" ;
50- pub const PRODUCT : & ' static str = "virkkunen.net usb-device TestClass" ;
51- pub const SERIAL_NUMBER : & ' static str = "TestClass Serial" ;
52- pub const CUSTOM_STRING : & ' static str = "TestClass Custom String" ;
53- pub const INTERFACE_STRING : & ' static str = "TestClass Interface" ;
49+ pub const MANUFACTURER : & str = "TestClass Manufacturer" ;
50+ pub const PRODUCT : & str = "virkkunen.net usb-device TestClass" ;
51+ pub const SERIAL_NUMBER : & str = "TestClass Serial" ;
52+ pub const CUSTOM_STRING : & str = "TestClass Custom String" ;
53+ pub const INTERFACE_STRING : & str = "TestClass Interface" ;
5454
5555pub const REQ_STORE_REQUEST : u8 = 1 ;
5656pub const REQ_READ_BUFFER : u8 = 2 ;
@@ -59,7 +59,7 @@ pub const REQ_SET_BENCH_ENABLED: u8 = 4;
5959pub const REQ_READ_LONG_DATA : u8 = 5 ;
6060pub const REQ_UNKNOWN : u8 = 42 ;
6161
62- pub const LONG_DATA : & ' static [ u8 ] = & [ 0x17 ; 257 ] ;
62+ pub const LONG_DATA : & [ u8 ] = & [ 0x17 ; 257 ] ;
6363
6464impl < B : UsbBus > TestClass < ' _ , B > {
6565 /// Creates a new TestClass.
@@ -105,7 +105,7 @@ impl<B: UsbBus> TestClass<'_, B> {
105105 & ' a self ,
106106 usb_bus : & ' b UsbBusAllocator < B > ,
107107 ) -> UsbDeviceBuilder < ' b , B > {
108- UsbDeviceBuilder :: new ( & usb_bus, UsbVidPid ( VID , PID ) )
108+ UsbDeviceBuilder :: new ( usb_bus, UsbVidPid ( VID , PID ) )
109109 . manufacturer ( MANUFACTURER )
110110 . product ( PRODUCT )
111111 . serial_number ( SERIAL_NUMBER )
0 commit comments