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
Regular cargo clippy doesn't check #[test] functions because it can't (the code is gone by the time the lints run). But if you do cargo clippy -- --cfg test it works. I wonder if there are any downsides to making this the default behavior.
The text was updated successfully, but these errors were encountered:
I guess this breaks people who have #[cfg(not(test))] on things. But perhaps cargo-clippy can support a --test flag which would be a bit shorter than -- --cfg test.
Regular
cargo clippy
doesn't check#[test]
functions because it can't (the code is gone by the time the lints run). But if you docargo clippy -- --cfg test
it works. I wonder if there are any downsides to making this the default behavior.The text was updated successfully, but these errors were encountered: