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.
Often, the strategies passed into
prop_oneof!
areBoxedStrategy
instances, which are not Send or Sync. Rust 1.72 has a newarc_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.