test: keep ref-edit three-sheet check clippy-clean

This commit is contained in:
Codex
2026-11-12 19:41:19 +01:00
parent 467d36a9c8
commit bf76e6e63b
+2 -2
View File
@@ -1064,8 +1064,8 @@ fn the_windows_cancel_with_an_unsavable_draft_closes_the_dialog_and_says_why() {
assert_eq!(draft_text(&h).as_deref(), Some("Picked note"), "the draft is kept");
assert_eq!(selection(&h).0, 2, "the selection stays where it is");
let wb = &h.state().session.active().unwrap().wb;
for sheet in 0..3 {
assert!(wb.sheets[sheet].value(CellRef::parse("H1").unwrap()).is_empty(), "nothing ran on sheet {sheet}");
for (index, sheet) in wb.sheets[..3].iter().enumerate() {
assert!(sheet.value(CellRef::parse("H1").unwrap()).is_empty(), "nothing ran on sheet {index}");
}
}