From e350bfdb0174870fe1460981e43b76ed6479bea1 Mon Sep 17 00:00:00 2001 From: aiongg Date: Fri, 23 Oct 2026 16:40:17 +0000 Subject: [PATCH] docking: the undock hint test uses contains, as clippy asks --- crates/ui/src/docking/split_tests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ui/src/docking/split_tests.rs b/crates/ui/src/docking/split_tests.rs index e87ed44f..69048efd 100644 --- a/crates/ui/src/docking/split_tests.rs +++ b/crates/ui/src/docking/split_tests.rs @@ -467,14 +467,14 @@ fn ctrl_or_cmd_floats_from_a_tab_or_a_drag_bar_and_the_preview_says_so() { // Without the modifier, a release over a group docks there; the preview names the modifier. let mut d = film(); d.hold(from, over); - assert!(texts(&d).iter().any(|t| *t == hint), "{from:?}: {:?}", texts(&d)); + assert!(texts(&d).contains(&hint), "{from:?}: {:?}", texts(&d)); let out = d.release(over); assert!(!out.actions.is_empty() && !floated(&out.actions, PROJECT[0]), "{from:?}: {:?}", out.actions); // Held, it floats, and the hint is gone. let mut d = film(); d.modifiers = Modifiers::COMMAND; d.hold(from, over); - assert!(!texts(&d).iter().any(|t| *t == hint), "{from:?}"); + assert!(!texts(&d).contains(&hint), "{from:?}"); let out = d.release(over); assert!(floated(&out.actions, PROJECT[0]), "{from:?}: {:?}", out.actions); }