From bf5edbbbbb75120d065d1c9587ccfa4eed4fdca1 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Fri, 25 Nov 2022 10:36:31 +0100 Subject: Tidy up --- library/src/graphics/shape.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'library/src/graphics/shape.rs') diff --git a/library/src/graphics/shape.rs b/library/src/graphics/shape.rs index ebdc1717..4c9fec07 100644 --- a/library/src/graphics/shape.rs +++ b/library/src/graphics/shape.rs @@ -76,8 +76,8 @@ impl LayoutInline for ShapeNode { fn layout_inline( &self, world: Tracked, - regions: &Regions, styles: StyleChain, + regions: &Regions, ) -> SourceResult { let mut frame; if let Some(child) = &self.0 { @@ -90,7 +90,7 @@ impl LayoutInline for ShapeNode { let child = child.clone().padded(inset.map(|side| side.map(Length::from))); let mut pod = Regions::one(regions.first, regions.base, regions.expand); - frame = child.layout_inline(world, &pod, styles)?; + frame = child.layout_inline(world, styles, &pod)?; // Relayout with full expansion into square region to make sure // the result is really a square or circle. @@ -106,7 +106,7 @@ impl LayoutInline for ShapeNode { pod.first = Size::splat(length); pod.expand = Axes::splat(true); - frame = child.layout_inline(world, &pod, styles)?; + frame = child.layout_inline(world, styles, &pod)?; } } else { // The default size that a shape takes on if it has no child and -- cgit v1.2.3