Skip to content

Commit 519c936

Browse files
ojedafbq
authored andcommitted
rust: simplify Clippy warning flags set
All Clippy lint groups that we enable, except `correctness`, have a default `warn` level, thus they may be removed now that we relaxed all lints to `warn`. Moreover, Clippy provides an `all` lint group that covers the groups we enable by default. Thus just use `all` instead -- the only change is that, if Clippy introduces a new lint group or splits an existing one, we will cover that one automatically. In addition, `let_unit_value` is in `style` since Rust 1.62.0, thus it does not need to be enabled manually. Reviewed-by: Finn Behrens <me@kloenk.dev> Tested-by: Benno Lossin <benno.lossin@proton.me> Tested-by: Andreas Hindborg <a.hindborg@samsung.com> Signed-off-by: Miguel Ojeda <ojeda@kernel.org> Link: https://lore.kernel.org/r/20240709160615.998336-6-ojeda@kernel.org
1 parent a00d0ae commit 519c936

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Makefile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -467,10 +467,8 @@ export rust_common_flags := --edition=2021 \
467467
-Wunreachable_pub \
468468
-Wmissing_docs \
469469
-Wrustdoc::missing_crate_level_docs \
470-
-Wclippy::correctness -Wclippy::style \
471-
-Wclippy::suspicious -Wclippy::complexity \
472-
-Wclippy::perf \
473-
-Wclippy::let_unit_value -Wclippy::mut_mut \
470+
-Wclippy::all \
471+
-Wclippy::mut_mut \
474472
-Wclippy::needless_bitwise_bool \
475473
-Wclippy::needless_continue \
476474
-Wclippy::no_mangle_with_rust_abi \

0 commit comments

Comments
 (0)