diff --git a/rust-toolchain b/rust-toolchain index f474f5a..837f16a 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1 +1 @@ -1.71.0 \ No newline at end of file +1.73.0 \ No newline at end of file diff --git a/src/platform/pnp_detect_libusb.rs b/src/platform/pnp_detect_libusb.rs index 424d05a..ec559d3 100644 --- a/src/platform/pnp_detect_libusb.rs +++ b/src/platform/pnp_detect_libusb.rs @@ -28,8 +28,8 @@ impl rusb::Hotplug for PnPDetectLibusb { } impl PnPDetectLibusb { - pub fn new(callback: Box) -> Self { - PnPDetectLibusb { callback } + pub fn new(callback: Box) -> Box { + Box::new(PnPDetectLibusb { callback }) } pub fn detect(self) -> Result<()> {