You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following test triggers clippy::unnecessary_operation...
proptest!{
#[test]fn proptest_sizeof_multiple_of_alignof(t in arb_type()){ifletOk(sizeof) = t.sizeof(){
prop_assert_eq!(sizeof % t.alignof().unwrap(),0);}}}
... probably because the expansion ends up with this:
match runner.run(
...){Ok(_) => (),Err(e) => panic!(),}
If there's a better way to express/rewrite the test, I'd prefer that of course.
Otherwise I hope it's not causing too much trouble by kindly requesting #[allow(clippy::unnecessary_operation)] to be added.
Thank you.
The text was updated successfully, but these errors were encountered:
Clippy is in the middle of trying to work out which lints should/shouldn't trigger for external macros: rust-clippy#4949, rust-clippy#5362. They've been receptive when requesting similar things for other lints.
Hello.
The following test triggers
clippy::unnecessary_operation
...... probably because the expansion ends up with this:
If there's a better way to express/rewrite the test, I'd prefer that of course.
Otherwise I hope it's not causing too much trouble by kindly requesting
#[allow(clippy::unnecessary_operation)]
to be added.Thank you.
The text was updated successfully, but these errors were encountered: