From 6a4823461f491aef63451f097ddfe5602e0b2157 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sat, 10 Jul 2021 20:01:18 +0200 Subject: Reference-count complex values Rename some nodes types --- src/layout/fixed.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/layout/fixed.rs') diff --git a/src/layout/fixed.rs b/src/layout/fixed.rs index dfcd4038..9fa2af8a 100644 --- a/src/layout/fixed.rs +++ b/src/layout/fixed.rs @@ -9,7 +9,7 @@ pub struct FixedNode { /// The fixed height, if any. pub height: Option, /// The child node whose size to fix. - pub child: AnyNode, + pub child: LayoutNode, } impl Layout for FixedNode { @@ -47,7 +47,7 @@ impl Layout for FixedNode { } } -impl From for AnyNode { +impl From for LayoutNode { fn from(fixed: FixedNode) -> Self { Self::new(fixed) } -- cgit v1.2.3