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

[proptest] silence clippy::arc_with_non_send_sync warning with prop_oneof #363

Merged
merged 1 commit into from Aug 27, 2023

Conversation

sunshowers
Copy link
Contributor

Often, the strategies passed into prop_oneof! are BoxedStrategy instances, which are not Send or Sync. Rust 1.72 has a new arc_with_non_send_sync clippy lint that fires in these cases.

The double-curly-braces are not strictly required, but allow the expression to be annotated with an attribute.

…neof

Often, the strategies passed into `prop_oneof!` are `BoxedStrategy`
instances, which are not Send or Sync. Rust 1.72 has a new
`arc_with_non_send_sync` clippy lint that fires in these cases.

The double-curly-braces are not strictly required, but allow the
expression to be annotated with an attribute.
@matthew-russo matthew-russo merged commit 466d59d into proptest-rs:master Aug 27, 2023
5 checks passed
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.

None yet

3 participants