From 5243878d810d4817c81acc9ae346d46757fcf602 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 12 Oct 2020 17:29:01 +0200 Subject: =?UTF-8?q?Less=20vecs=20in=20layouting=20=E2=9A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/node.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/layout/node.rs') diff --git a/src/layout/node.rs b/src/layout/node.rs index 4cba3d4f..aa4b990f 100644 --- a/src/layout/node.rs +++ b/src/layout/node.rs @@ -25,7 +25,7 @@ impl LayoutNode { } impl Layout for LayoutNode { - fn layout(&self, ctx: &mut LayoutContext, areas: &Areas) -> Vec { + fn layout(&self, ctx: &mut LayoutContext, areas: &Areas) -> Layouted { match self { Self::Spacing(spacing) => spacing.layout(ctx, areas), Self::Text(text) => text.layout(ctx, areas), -- cgit v1.2.3