Skip to content

Commit 3725f92

Browse files
committed
clippy: remove match_on_vec_items
This would warn about some subset of index-related panics. In recent nightlies this has been subsumed by the `indexing_slicing` lint which lints on all array indexing. This is pretty cool but waay overkill.
1 parent fd143db commit 3725f92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ exclude = ["fuzz", "bitcoind-tests"]
4444
large_enum_variant = "allow" # docs say "measure before paying attention to this"; why is it on by default??
4545
similar_names = "allow" # Too many (subjectively) false positives.
4646
uninlined_format_args = "allow" # This is a subjective style choice.
47+
indexing_slicing = "allow" # Too many false positives ... would be cool though
4748
match_bool = "allow" # Adds extra indentation and LOC.
4849
match_same_arms = "allow" # Collapses things that are conceptually unrelated to each other.
4950
must_use_candidate = "allow" # Useful for audit but many false positives.
@@ -107,7 +108,6 @@ manual_ok_or = "warn"
107108
manual_string_new = "warn"
108109
many_single_char_names = "warn"
109110
map_unwrap_or = "allow"
110-
match_on_vec_items = "warn"
111111
match_wild_err_arm = "warn"
112112
match_wildcard_for_single_variants = "allow"
113113
maybe_infinite_iter = "warn"

0 commit comments

Comments
 (0)