summaryrefslogtreecommitdiff
path: root/src/layout/fixed.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/layout/fixed.rs')
-rw-r--r--src/layout/fixed.rs4
1 files changed, 2 insertions, 2 deletions
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<Linear>,
/// 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<FixedNode> for AnyNode {
+impl From<FixedNode> for LayoutNode {
fn from(fixed: FixedNode) -> Self {
Self::new(fixed)
}