Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Allow `clippy::single_range_in_vec_init` as a permanent rule (#9366)

Marshall Bowersa78576a6dbcf
diff --git a/Cargo.toml b/Cargo.toml
index d5af745a0db..46a7ad990b2 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -388,6 +388,10 @@ codegen-units = 1
dbg_macro = "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
# codebase.
#
@@ -414,7 +418,6 @@ map_entry = "allow"
non_canonical_clone_impl = "allow"
non_canonical_partial_ord_impl = "allow"
reversed_empty_ranges = "allow"
-single_range_in_vec_init = "allow"
type_complexity = "allow"
[workspace.metadata.cargo-machete]