summary refs log tree commit diff
path: root/usb_util/src/hotplug.rs
diff options
context:
space:
mode:
Diffstat (limited to 'usb_util/src/hotplug.rs')
-rw-r--r--usb_util/src/hotplug.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/usb_util/src/hotplug.rs b/usb_util/src/hotplug.rs
index ea78c71..d35a757 100644
--- a/usb_util/src/hotplug.rs
+++ b/usb_util/src/hotplug.rs
@@ -38,7 +38,7 @@ pub trait UsbHotplugHandler: Send + Sync + 'static {
 /// user_data to libusb_hotplug_register_callback.
 pub struct UsbHotplugHandlerHolder {
     context: Arc<LibUsbContextInner>,
-    handler: Box<UsbHotplugHandler>,
+    handler: Box<dyn UsbHotplugHandler>,
 }
 
 impl UsbHotplugHandlerHolder {