proptest-rs / proptest

Hypothesis-like property testing for Rust
Apache License 2.0
1.69k stars 158 forks source link

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

Closed sunshowers closed 1 year ago

sunshowers commented 1 year ago

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.