summary refs log tree commit diff
path: root/usb_util/src/usb_transfer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'usb_util/src/usb_transfer.rs')
-rw-r--r--usb_util/src/usb_transfer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/usb_util/src/usb_transfer.rs b/usb_util/src/usb_transfer.rs
index d3354ef..4dfe3e5 100644
--- a/usb_util/src/usb_transfer.rs
+++ b/usb_util/src/usb_transfer.rs
@@ -130,7 +130,7 @@ impl UsbTransferBuffer for BulkTransferBuffer {
     }
 }
 
-type UsbTransferCompletionCallback<T> = Fn(UsbTransfer<T>) + Send + 'static;
+type UsbTransferCompletionCallback<T> = dyn Fn(UsbTransfer<T>) + Send + 'static;
 
 // This wraps libusb_transfer pointer.
 struct LibUsbTransfer {