mirror of
https://github.com/aphrody-labs/wordcraft.git
synced 2026-10-13 19:26:53 +00:00
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:
1 parent
9f0776a70b
commit
74548cff57
1 file changed
+2
-3
@@ -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())));
|
||||
|
||||
Reference in new issue
Block a user