summaryrefslogtreecommitdiff
path: root/src/library/elements.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-10-26 17:11:08 +0200
committerLaurenz <laurmaedje@gmail.com>2021-10-26 17:14:11 +0200
commit5c534fb42881b508175dd25129f62e604bdae403 (patch)
treefab522708f55d3ee132cb7a0789de701b795d847 /src/library/elements.rs
parentfb0cd3df6e1e1077c6f19c319726c9aa9678325b (diff)
Simplify node construction
Diffstat (limited to 'src/library/elements.rs')
-rw-r--r--src/library/elements.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/elements.rs b/src/library/elements.rs
index cd8a6f88..01efb405 100644
--- a/src/library/elements.rs
+++ b/src/library/elements.rs
@@ -99,6 +99,6 @@ fn shape_impl(
fill: Some(Paint::Color(
fill.unwrap_or(Color::Rgba(RgbaColor::new(175, 175, 175, 255))),
)),
- child: body.as_ref().map(|template| template.to_stack(style).into()),
+ child: body.as_ref().map(|template| template.to_stack(style).pack()),
}))
}