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
and at least one file in tests that does use name_of_crate::demo, cargo clippy --all-targets will diagnose the needless_return twice in a row. If you use cargo --verbose it's clear that the clippy-driver program has been invoked twice (once with --test and once without) and each invocation is reporting the lint, but without that, it looks like clippy is repeating itself for no reason.
The text was updated successfully, but these errors were encountered:
Can confirm that it also seems like clippy fix will attempt to diagnose and fix the problem multiple times within one invocation with --all-targets, (if you recreate the issue right after it was fixed)
Given a crate containing this file as
src/lib.rs
and at least one file in
tests
that doesuse name_of_crate::demo
,cargo clippy --all-targets
will diagnose theneedless_return
twice in a row. If you usecargo --verbose
it's clear that the clippy-driver program has been invoked twice (once with--test
and once without) and each invocation is reporting the lint, but without that, it looks like clippy is repeating itself for no reason.The text was updated successfully, but these errors were encountered: