diff options
Diffstat (limited to 'src/layout/background.rs')
| -rw-r--r-- | src/layout/background.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/layout/background.rs b/src/layout/background.rs index 867783bf..76ce431b 100644 --- a/src/layout/background.rs +++ b/src/layout/background.rs @@ -9,7 +9,7 @@ pub struct BackgroundNode { /// Background color / texture. pub fill: Paint, /// The child node to be filled. - pub child: AnyNode, + pub child: LayoutNode, } /// The kind of shape to use as a background. @@ -45,7 +45,7 @@ impl Layout for BackgroundNode { } } -impl From<BackgroundNode> for AnyNode { +impl From<BackgroundNode> for LayoutNode { fn from(background: BackgroundNode) -> Self { Self::new(background) } |
