Fix iterator related clippy style lint violations (#36437)

Release Notes:

- N/A
This commit is contained in:
tidely
2025-08-19 10:06:35 +02:00
committed by GitHub
parent 176c445817
commit 1fbb318714
13 changed files with 21 additions and 33 deletions
+1 -2
View File
@@ -503,8 +503,7 @@ fn update_editor_selection(
&[last_kept_hunk_end..editor::Anchor::max()],
buffer_snapshot,
)
.skip(1)
.next()
.nth(1)
})
.or_else(|| {
let first_kept_hunk = diff_hunks.first()?;