Skip to content

Commit

Permalink
Address compilation issues in #102
Browse files Browse the repository at this point in the history
  • Loading branch information
haimgel committed Oct 22, 2023
1 parent 937f81a commit c2ca727
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/usb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub fn device2str<T: UsbContext>(device: rusb::Device<T>) -> Option<String> {
.ok()
}

pub trait UsbCallback {
pub trait UsbCallback: Send {
fn device_added(&self, device_id: &str);
fn device_removed(&self, device_id: &str);
}

0 comments on commit c2ca727

Please sign in to comment.