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

Require Sync to implement Send for Cow. Fixes #37 #38

Merged
merged 2 commits into from
Jan 26, 2021

Conversation

ammaraskar
Copy link
Contributor

Not sure if this should have a test.

Currently it is possible to send across references to non-sync types across thread boundaries as long as they are wrapped in a Cow. This changes the trait bounds for `Send` to be the same as they are for the standard library's Cow https://doc.rust-lang.org/std/borrow/enum.Cow.html#impl-Send
@JOE1994
Copy link

JOE1994 commented Jan 26, 2021

@maciejhirsz Would you mind reviewing & merging this PR? Thank you 🦀

src/generic.rs Outdated Show resolved Hide resolved
@maciejhirsz maciejhirsz merged commit 8e970aa into maciejhirsz:master Jan 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants