From 954e4dc0b519f748fc15d841d1f161b81407dd96 Mon Sep 17 00:00:00 2001 From: Nico Burns Date: Sat, 22 Jul 2023 15:12:25 +0100 Subject: [PATCH] cargo fmt --- tests/relayout.rs | 52 +++++++++++++++++++++++++---------------------- 1 file changed, 28 insertions(+), 24 deletions(-) diff --git a/tests/relayout.rs b/tests/relayout.rs index 18fd588f2..8f5fa9e24 100644 --- a/tests/relayout.rs +++ b/tests/relayout.rs @@ -333,30 +333,34 @@ fn relayout_is_stable_with_rounding() { // // - let inner = taffy.new_leaf(Style { min_size: Size { width: length(300.), height: auto() }, ..Default::default() }).unwrap(); - let wrapper = taffy.new_with_children( - Style { - size: Size { width: length(150.), height: auto() }, - justify_content: Some(JustifyContent::End), - ..Default::default() - }, - &[inner] - ).unwrap(); - let outer = taffy.new_with_children( - Style { - size: Size { width: percent(1.), height: auto() }, - inset: Rect { left: length(1.5), right: auto(), top: auto(), bottom: auto() }, - ..Default::default() - }, - &[wrapper] - ).unwrap(); - let root = taffy.new_with_children( - Style { - size: Size { width: length(1920.),height: length(1080.) }, - ..Default::default() - }, - &[outer] - ).unwrap(); + let inner = + taffy.new_leaf(Style { min_size: Size { width: length(300.), height: auto() }, ..Default::default() }).unwrap(); + let wrapper = taffy + .new_with_children( + Style { + size: Size { width: length(150.), height: auto() }, + justify_content: Some(JustifyContent::End), + ..Default::default() + }, + &[inner], + ) + .unwrap(); + let outer = taffy + .new_with_children( + Style { + size: Size { width: percent(1.), height: auto() }, + inset: Rect { left: length(1.5), right: auto(), top: auto(), bottom: auto() }, + ..Default::default() + }, + &[wrapper], + ) + .unwrap(); + let root = taffy + .new_with_children( + Style { size: Size { width: length(1920.), height: length(1080.) }, ..Default::default() }, + &[outer], + ) + .unwrap(); for _ in 0..5 { taffy.mark_dirty(root).ok(); taffy.compute_layout(root, Size::MAX_CONTENT).ok();