1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 03:57:44 +00:00

move lints from rustflags to Cargo.toml

This prevents unnecessary rebuilds when mixing runs of `cargo clippy` and other
cargo commands (e.g., `cargo c && cargo clippy && cargo c` no longer rebuilds).
This commit is contained in:
Justin Tracey 2024-09-29 14:04:42 -04:00
parent aaa541a8ad
commit 5994759560
No known key found for this signature in database
GPG key ID: 62B84F5ABDDDCE54
2 changed files with 14 additions and 18 deletions

View file

@ -1,13 +1,2 @@
[target.x86_64-unknown-redox]
linker = "x86_64-unknown-redox-gcc"
[target.'cfg(clippy)']
rustflags = [
"-Wclippy::use_self",
"-Wclippy::needless_pass_by_value",
"-Wclippy::semicolon_if_nothing_returned",
"-Wclippy::single_char_pattern",
"-Wclippy::explicit_iter_loop",
"-Wclippy::if_not_else",
]