From 2e77b1c836220766398e379ae0157736fb448874 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 4 Jan 2021 21:29:15 +0100 Subject: =?UTF-8?q?Better=20value=20representations,=20type=20function=20?= =?UTF-8?q?=F0=9F=8C=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/stack.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/layout/stack.rs') diff --git a/src/layout/stack.rs b/src/layout/stack.rs index e98be7ed..eac631d9 100644 --- a/src/layout/stack.rs +++ b/src/layout/stack.rs @@ -34,9 +34,9 @@ impl Layout for NodeStack { } } -impl From for Node { +impl From for NodeAny { fn from(stack: NodeStack) -> Self { - Self::any(stack) + Self::new(stack) } } -- cgit v1.2.3