Closed
Description
Description
New lint struct_field_names
can't be disabled, while other rules are disabled fine when running cargo clippy --fix --allow-dirty
.
Workspace root Cargo.toml
:
[workspace.lints.clippy]
all = "deny"
pedantic = "deny"
nursery = "deny"
module_name_repetitions = "allow" # working
single_match_else = "allow" # working
future_not_send = "allow" # working
needless_pass_by_value = "allow" # working
struct_field_names = "allow" # not working
Actual behavior:
Warning:
6 | pub user_id: Uuid,
| ^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#struct_field_names
= note: `-D clippy::struct-field-names` implied by `-D clippy::pedantic`
= help: to override `-D clippy::pedantic` add `#[allow(clippy::struct_field_names)]`
Expected
No warnings when struct_field_names = "allow"
Version
rustc 1.75.0 (82e1608df 2023-12-21)
binary: rustc
commit-hash: 82e1608dfa6e0b5569232559e3d385fea5a93112
commit-date: 2023-12-21
host: x86_64-unknown-linux-gnu
release: 1.75.0
LLVM version: 17.0.6
Additional Labels
No response
Metadata
Metadata
Assignees
Labels
No labels