Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Unsound Send/Sync bound for Device and DeviceHandle #45

Merged
merged 1 commit into from
Jan 4, 2021

Commits on Dec 22, 2020

  1. Fix Unsound Send/Sync bound

    As mention #44 UsbContext trait has neither Send nor Sync bound and can be implemented from the user side. This permits writing a custom non-thread safe UsbContext implementation in safe Rust code, which can cause a data race when used with Device or DeviceHandle.
    So required UsbContext implement Send + Sync
    a1ien committed Dec 22, 2020
    Configuration menu
    Copy the full SHA
    cb06889 View commit details
    Browse the repository at this point in the history