Enable clippy::needless_lifetimes (#8777)

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

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers
2024-03-03 11:52:58 -05:00
committed by GitHub
parent 1fa9496334
commit 53630dc74c
13 changed files with 67 additions and 78 deletions
+2 -2
View File
@@ -208,8 +208,8 @@ impl BufferDiff {
}
}
fn process_patch_hunk<'a>(
patch: &GitPatch<'a>,
fn process_patch_hunk(
patch: &GitPatch<'_>,
hunk_index: usize,
buffer: &text::BufferSnapshot,
buffer_row_divergence: &mut i64,