mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-06 02:37:21 +00:00
Allow clippy::single_range_in_vec_init
as a permanent rule (#9366)
This PR promotes the allowance of the [`clippy::single_range_in_vec_init`](https://rust-lang.github.io/rust-clippy/master/index.html#/single_range_in_vec_init) rule to a permanent one. This rule complains about a pretty common pattern we use that doesn't seem to have any adverse effects, so we're going to continue allowing this rule. Release Notes: - N/A
This commit is contained in:
parent
7f3f296e81
commit
a78576a6db
1 changed files with 4 additions and 1 deletions
|
@ -388,6 +388,10 @@ codegen-units = 1
|
||||||
dbg_macro = "deny"
|
dbg_macro = "deny"
|
||||||
todo = "deny"
|
todo = "deny"
|
||||||
|
|
||||||
|
# Motivation: We use `vec![a..b]` a lot when dealing with ranges in text, so
|
||||||
|
# warning on this rule produces a lot of noise.
|
||||||
|
single_range_in_vec_init = "allow"
|
||||||
|
|
||||||
# These are all of the rules that currently have violations in the Zed
|
# These are all of the rules that currently have violations in the Zed
|
||||||
# codebase.
|
# codebase.
|
||||||
#
|
#
|
||||||
|
@ -414,7 +418,6 @@ map_entry = "allow"
|
||||||
non_canonical_clone_impl = "allow"
|
non_canonical_clone_impl = "allow"
|
||||||
non_canonical_partial_ord_impl = "allow"
|
non_canonical_partial_ord_impl = "allow"
|
||||||
reversed_empty_ranges = "allow"
|
reversed_empty_ranges = "allow"
|
||||||
single_range_in_vec_init = "allow"
|
|
||||||
type_complexity = "allow"
|
type_complexity = "allow"
|
||||||
|
|
||||||
[workspace.metadata.cargo-machete]
|
[workspace.metadata.cargo-machete]
|
||||||
|
|
Loading…
Reference in a new issue