From 6a78a88acef6edf34bfc232e0dfb9767ddbd798d Mon Sep 17 00:00:00 2001 From: aiongg Date: Wed, 25 Nov 2026 19:21:48 +0000 Subject: [PATCH] Window trials: the settle loop runs its frames one by one (clippy) --- crates/ui-contract/tests/it/runtime/windows.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/crates/ui-contract/tests/it/runtime/windows.rs b/crates/ui-contract/tests/it/runtime/windows.rs index 1fc79468fe..25479c33f7 100644 --- a/crates/ui-contract/tests/it/runtime/windows.rs +++ b/crates/ui-contract/tests/it/runtime/windows.rs @@ -479,7 +479,13 @@ fn a_layer_in_a_popup_window_keeps_its_scroll_until_it_closes() { }); }) }; - let settled = || (0..PAST_THE_WAIT).map(|_| frame()).last().expect("frames ran"); + let settled = || { + let mut out = frame(); + for _ in 1..PAST_THE_WAIT { + out = frame(); + } + out + }; let palette = builder_titled(&frame(), "tool").0; open.set(true); assert!(popup_window(&settled(), palette).is_some(), "the layer opened in the palette shows in a popup window");