From 85899089ec10f7fcd41934f2733c2d7fc9a7c825 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Sat, 28 Nov 2026 08:32:10 -0800 Subject: [PATCH] Tests: format the New Document orientation assertion --- crates/ui-egui/src/dialogs/new_document.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/crates/ui-egui/src/dialogs/new_document.rs b/crates/ui-egui/src/dialogs/new_document.rs index 561f7f9517..caefb3bf5c 100644 --- a/crates/ui-egui/src/dialogs/new_document.rs +++ b/crates/ui-egui/src/dialogs/new_document.rs @@ -1026,10 +1026,7 @@ mod tests { let landscape = bounds("Landscape", egui::accesskit::Role::RadioButton); let artboards = bounds("Artboards", egui::accesskit::Role::SpinButton); // Artboards follows Landscape on its line, or wraps below it when the column has no room for it. - assert!( - landscape.x1 <= artboards.x0 || landscape.y1 <= artboards.y0, - "Landscape {landscape:?} stays clear of Artboards {artboards:?}" - ); + assert!(landscape.x1 <= artboards.x0 || landscape.y1 <= artboards.y0, "Landscape {landscape:?} stays clear of Artboards {artboards:?}"); let group = bounds("Orientation", egui::accesskit::Role::RadioGroup); let mut drawn = Vec::new(); out.shapes.iter().for_each(|s| texts(&s.shape, &mut drawn));