Closed rajohns08 closed 2 years ago
I'm on Linux, and was not getting any device connected/disconnected events. This fixed it. Thanks!
By the way, instead of doing unsafe impl Send for PnPDetectLibusb
, the UsbCallback
can be changed to be Send
doing pub trait UsbCallback: Send
Now that I look at this one, it's very similar to my PR https://github.com/haimgel/display-switch/pull/111 that I just submitted a few hours ago, except I did made the UsbCallback Send as suggested above.
@jabl I think #111 is a bit better, so closing this one since #111 is merged.
Fixes #104