From 04c2b070ef88607a0c26b59245f8cea93eff4437 Mon Sep 17 00:00:00 2001 From: Taha-Mahmoodi <85902429+Taha-Mahmoodi@users.noreply.github.com> Date: Sat, 14 Nov 2026 14:43:40 +0430 Subject: [PATCH] test(ui): satisfy clippy manual_contains --- crates/ui-egui/src/panels/paragraph/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ui-egui/src/panels/paragraph/tests.rs b/crates/ui-egui/src/panels/paragraph/tests.rs index f700d404c1..d9859fdf60 100644 --- a/crates/ui-egui/src/panels/paragraph/tests.rs +++ b/crates/ui-egui/src/panels/paragraph/tests.rs @@ -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.