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
+2 -2
View File
@@ -3183,9 +3183,9 @@ mod tests {
// so we special case row 0 to assume a leading '\n'.
//
// Linehood is the birthright of strings.
let mut input_text_lines = input_text.split('\n').enumerate().peekable();
let input_text_lines = input_text.split('\n').enumerate().peekable();
let mut block_row = 0;
while let Some((wrap_row, input_line)) = input_text_lines.next() {
for (wrap_row, input_line) in input_text_lines {
let wrap_row = wrap_row as u32;
let multibuffer_row = wraps_snapshot
.to_point(WrapPoint::new(wrap_row, 0), Bias::Left)