layout tests: iterate the cells in a_hidden_cell_mark_takes_no_room (clippy) (#948)

clippy::needless_range_loop failed cargo clippy --all-targets -D warnings on
main after #939.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Brandon ThomasandClaude Opus 5.5 authored and GitHub committed 2026-10-12 09:52:20 -04:00
1 parent 9f0776a70b
commit 74548cff57
1 file changed
+2 -3
+2 -3
View File
@@ -4223,9 +4223,8 @@ fn a_hidden_cell_mark_takes_no_room() {
t.rows[r].cells[c].blocks = vec![wordcraft_doc::para_block(wordcraft_doc::Paragraph::with_text(text, Default::default()))];
}
}
for c in 0..2 {
let cell = &mut t.rows[1].cells[c];
cell.props.hide_mark = hide[c];
for (cell, hide) in t.rows[1].cells.iter_mut().zip(hide) {
cell.props.hide_mark = hide;
let mut blocks = Vec::new();
if let Some(text) = second {
blocks.push(wordcraft_doc::para_block(wordcraft_doc::Paragraph::with_text(text, Default::default())));