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.

Enable `clippy::identity_op` (#8773)

Marshall Bowers2964a01d73fb
diff --git a/crates/languages/src/ocaml.rs b/crates/languages/src/ocaml.rs
index f355bcb965a..0dc4bfcd2b9 100644
--- a/crates/languages/src/ocaml.rs
+++ b/crates/languages/src/ocaml.rs
@@ -140,7 +140,7 @@ impl LspAdapter for OCamlLspAdapter {
}
let mut label_highlight = vec![(
- 0..0 + label.len(),
+ 0..label.len(),
language.grammar()?.highlight_id_for_name("property")?,
)];
diff --git a/tooling/xtask/src/main.rs b/tooling/xtask/src/main.rs
index 72c1588fe7c..a83ae283ad4 100644
--- a/tooling/xtask/src/main.rs
+++ b/tooling/xtask/src/main.rs
@@ -90,7 +90,6 @@ fn run_clippy(args: ClippyArgs) -> Result<()> {
"clippy::derive_ord_xor_partial_ord",
"clippy::eq_op",
"clippy::explicit_counter_loop",
- "clippy::identity_op",
"clippy::implied_bounds_in_impls",
"clippy::iter_kv_map",
"clippy::iter_overeager_cloned",