Skip to content

Commit

Permalink
Make PnPDetectLibusb the same signature as PnPDetectWindows
Browse files Browse the repository at this point in the history
  • Loading branch information
haimgel committed Oct 29, 2023
1 parent 03716a8 commit e260e5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.71.0
1.73.0
4 changes: 2 additions & 2 deletions src/platform/pnp_detect_libusb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ impl<T: UsbContext> rusb::Hotplug<T> for PnPDetectLibusb {
}

impl PnPDetectLibusb {
pub fn new(callback: Box<dyn UsbCallback + Send>) -> Self {
PnPDetectLibusb { callback }
pub fn new(callback: Box<dyn UsbCallback + Send>) -> Box<Self> {
Box::new(PnPDetectLibusb { callback })
}

pub fn detect(self) -> Result<()> {
Expand Down

0 comments on commit e260e5b

Please sign in to comment.