Enable clippy::identity_op (#8773)

This PR enables the
[`clippy::identity_op`](https://rust-lang.github.io/rust-clippy/master/index.html#/identity_op)
rule and fixes the outstanding violations.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-03-03 11:05:08 -05:00 committed by GitHub
parent 83f6a1ea49
commit 2964a01d73
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 2 deletions

View File

@ -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")?,
)];

View File

@ -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",