From e260e5b1eab47ffa844ffdca572d268a006e7728 Mon Sep 17 00:00:00 2001 From: Haim Gelfenbeyn Date: Sun, 29 Oct 2023 14:27:06 -0400 Subject: [PATCH] Make PnPDetectLibusb the same signature as PnPDetectWindows --- rust-toolchain | 2 +- src/platform/pnp_detect_libusb.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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<()> {