Skip to content

Commit

Permalink
Merge pull request #45 from a1ien/fix_unsound_usbcontext
Browse files Browse the repository at this point in the history
Fix Unsound Send/Sync bound for Device and DeviceHandle
  • Loading branch information
a1ien authored Jan 4, 2021
2 parents 12ee91d + cb06889 commit 3aa7df7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pub trait Hotplug<T: UsbContext> {

pub type Registration = c_int;

pub trait UsbContext: Clone + Sized {
pub trait UsbContext: Clone + Sized + Send + Sync {
/// Get the raw libusb_context pointer, for advanced use in unsafe code.
fn as_raw(&self) -> *mut libusb_context;

Expand Down

0 comments on commit 3aa7df7

Please sign in to comment.