Fix clippy::println_empty_string, clippy::while_let_on_iterator, clippy::while_let_on_iterator lint style violations (#36613)

Related: #36577

Release Notes:

- N/A
This commit is contained in:
Umesh Yadav
2025-08-20 20:14:30 +02:00
committed by GitHub
parent 41e28a7185
commit ec8106d1db
20 changed files with 35 additions and 32 deletions
@@ -2250,11 +2250,11 @@ impl ReferenceMultibuffer {
let base_buffer = diff.base_text();
let mut offset = buffer_range.start;
let mut hunks = diff
let hunks = diff
.hunks_intersecting_range(excerpt.range.clone(), buffer, cx)
.peekable();
while let Some(hunk) = hunks.next() {
for hunk in hunks {
// Ignore hunks that are outside the excerpt range.
let mut hunk_range = hunk.buffer_range.to_offset(buffer);