diff options
Diffstat (limited to 'devices/src/usb')
-rw-r--r-- | devices/src/usb/host_backend/host_device.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/devices/src/usb/host_backend/host_device.rs b/devices/src/usb/host_backend/host_device.rs index 235edbf..c73898b 100644 --- a/devices/src/usb/host_backend/host_device.rs +++ b/devices/src/usb/host_backend/host_device.rs @@ -112,7 +112,7 @@ impl HostDevice { device: LibUsbDevice, device_handle: DeviceHandle, ) -> HostDevice { - let device = HostDevice { + HostDevice { fail_handle, endpoints: vec![], device, @@ -123,8 +123,7 @@ impl HostDevice { control_request_setup: UsbRequestSetup::new(0, 0, 0, 0, 0), buffer: None, job_queue, - }; - device + } } fn get_interface_number_of_active_config(&self) -> i32 { |