diff --git a/rockusb/Cargo.toml b/rockusb/Cargo.toml index b58d20b..629bb66 100644 --- a/rockusb/Cargo.toml +++ b/rockusb/Cargo.toml @@ -20,7 +20,7 @@ crc = "3.0.1" fastrand = "2" num_enum = "0.7" thiserror = "1.0.38" -rusb = { version = "0.9.1", optional = true } +rusb = { version = "0.9.4", optional = true } nusb = { version = "0.1.10", optional = true } futures = { version = "0.3.31", optional = true } diff --git a/rockusb/src/libusb.rs b/rockusb/src/libusb.rs index 43d86ea..68b8c8b 100644 --- a/rockusb/src/libusb.rs +++ b/rockusb/src/libusb.rs @@ -84,7 +84,7 @@ pub struct Transport { impl Transport { fn new( - mut handle: DeviceHandle, + handle: DeviceHandle, interface: u8, ep_in: u8, ep_out: u8,