summaryrefslogtreecommitdiff
path: root/src/library/elements.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/library/elements.rs')
-rw-r--r--src/library/elements.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/elements.rs b/src/library/elements.rs
index e669369a..6c6c66db 100644
--- a/src/library/elements.rs
+++ b/src/library/elements.rs
@@ -55,7 +55,7 @@ fn rect_impl(
height: Option<Linear>,
aspect: Option<N64>,
fill: Option<Color>,
- body: TemplateValue,
+ body: Template,
) -> Value {
Value::template(move |ctx| {
let mut stack = ctx.exec_template_stack(&body);
@@ -99,7 +99,7 @@ fn ellipse_impl(
height: Option<Linear>,
aspect: Option<N64>,
fill: Option<Color>,
- body: TemplateValue,
+ body: Template,
) -> Value {
Value::template(move |ctx| {
// This padding ratio ensures that the rectangular padded region fits