Skip to content

Commit 6a59a91

Browse files
ojedaintel-lab-lkp
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. Signed-off-by: Miguel Ojeda <[email protected]>
1 parent 5327301 commit 6a59a91

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
@@ -465,10 +465,8 @@ export rust_common_flags := --edition=2021 \
465465
-Wunreachable_pub -Wnon_ascii_idents \
466466
-Wmissing_docs \
467467
-Wrustdoc::missing_crate_level_docs \
468-
-Wclippy::correctness -Wclippy::style \
469-
-Wclippy::suspicious -Wclippy::complexity \
470-
-Wclippy::perf \
471-
-Wclippy::let_unit_value -Wclippy::mut_mut \
468+
-Wclippy::all \
469+
-Wclippy::mut_mut \
472470
-Wclippy::needless_bitwise_bool \
473471
-Wclippy::needless_continue \
474472
-Wclippy::no_mangle_with_rust_abi \

0 commit comments

Comments
 (0)