test(ui): satisfy clippy manual_contains

This commit is contained in:
Taha-Mahmoodi
2026-11-14 14:43:40 +04:30
parent 85e31d45ad
commit 04c2b070ef
+1 -1
View File
@@ -144,7 +144,7 @@ fn the_paragraph_menu_sets_each_of_the_four_composers() {
let texts = items(&mut app);
for (v, label) in labels {
let row = if v == value { format!("✓ {label}") } else { format!(" {label}") };
assert!(texts.iter().any(|t| *t == row), "{value}: {row:?} in {texts:?}");
assert!(texts.contains(&row), "{value}: {row:?} in {texts:?}");
}
}
// Choosing a row sets its composer: the row is a `text.setFormat {composer}` with the row's id.