From 8d7b0664881db005cdcb9ca7bcdd822e78a2fabf Mon Sep 17 00:00:00 2001 From: aiongg Date: Sat, 21 Nov 2026 03:49:31 +0000 Subject: [PATCH] Sizing trial: name the dialog opener type (clippy type_complexity) --- crates/ui-patterns/tests/it/form_dialogs/hosted.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/ui-patterns/tests/it/form_dialogs/hosted.rs b/crates/ui-patterns/tests/it/form_dialogs/hosted.rs index caea87ce13..74646a4791 100644 --- a/crates/ui-patterns/tests/it/form_dialogs/hosted.rs +++ b/crates/ui-patterns/tests/it/form_dialogs/hosted.rs @@ -465,13 +465,16 @@ fn image_size_alt_digits_pick_resample_without_typing_into_a_field() { assert_eq!(resample(&host), Some(json!("nearestNeighbor")), "Alt+7 picks a listed method"); } +/// Opens a dialog on a host. +type Opener = fn(&mut DialogHost); + /// Image Size's and Canvas Size's Width and Height rows (a stack of fields beside the link) show as they measured, at /// 1x and 1.25x (#15483, #15538): each label sits beside its field, each field and unit select is as tall as a direct /// row's control (`reference`), and Height's label starts under Width's controls. #[trial] fn sizing_dialogs_show_width_and_height_beside_their_labels_at_full_height() { for scale in [1.0, 1.25] { - let opens: [(fn(&mut DialogHost), &str); 2] = [ + let opens: [(Opener, &str); 2] = [ ( |host| { host.open(image_size());