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.

Move clippy lints which aren't apart of the style category (#36579)

tidelyf80a0ba056a0
diff --git a/Cargo.toml b/Cargo.toml
index c3c70912792..c259a969126 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -806,6 +806,9 @@ todo = "deny"
# warning on this rule produces a lot of noise.
single_range_in_vec_init = "allow"
+redundant_clone = "warn"
+declare_interior_mutable_const = "deny"
+
# These are all of the rules that currently have violations in the Zed
# codebase.
#
@@ -840,12 +843,10 @@ match_like_matches_macro = "warn"
module_inception = { level = "deny" }
question_mark = { level = "deny" }
single_match = "warn"
-redundant_clone = "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" }
needless_borrow = { level = "warn"}