Another batch of lint fixes (#36521)
- **Enable a bunch of extra lints** - **First batch of fixes** - **More fixes** Release Notes: - N/A
This commit is contained in:
parent
69b1c6d6f5
commit
6825715503
147 changed files with 788 additions and 1042 deletions
10
Cargo.toml
10
Cargo.toml
|
@ -822,14 +822,20 @@ style = { level = "allow", priority = -1 }
|
|||
|
||||
# Temporary list of style lints that we've fixed so far.
|
||||
comparison_to_empty = "warn"
|
||||
into_iter_on_ref = "warn"
|
||||
iter_cloned_collect = "warn"
|
||||
iter_next_slice = "warn"
|
||||
iter_nth = "warn"
|
||||
iter_nth_zero = "warn"
|
||||
iter_skip_next = "warn"
|
||||
let_and_return = "warn"
|
||||
module_inception = { level = "deny" }
|
||||
question_mark = { level = "deny" }
|
||||
single_match = "warn"
|
||||
redundant_closure = { level = "deny" }
|
||||
redundant_static_lifetimes = { level = "warn" }
|
||||
redundant_pattern_matching = "warn"
|
||||
redundant_field_names = "warn"
|
||||
declare_interior_mutable_const = { level = "deny" }
|
||||
collapsible_if = { level = "warn"}
|
||||
collapsible_else_if = { level = "warn" }
|
||||
|
@ -857,6 +863,10 @@ too_many_arguments = "allow"
|
|||
# We often have large enum variants yet we rarely actually bother with splitting them up.
|
||||
large_enum_variant = "allow"
|
||||
|
||||
# `enum_variant_names` fires for all enums, even when they derive serde traits.
|
||||
# Adhering to this lint would be a breaking change.
|
||||
enum_variant_names = "allow"
|
||||
|
||||
[workspace.metadata.cargo-machete]
|
||||
ignored = [
|
||||
"bindgen",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue