diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-07-10 20:01:18 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-07-10 23:10:17 +0200 |
| commit | 6a4823461f491aef63451f097ddfe5602e0b2157 (patch) | |
| tree | ad11b0ad169d030942d950573c729d50f7b3291b /src/library/elements.rs | |
| parent | 36b3067c19c8743032a44f888ee48702b88d135b (diff) | |
Reference-count complex values
Rename some nodes types
Diffstat (limited to 'src/library/elements.rs')
| -rw-r--r-- | src/library/elements.rs | 4 |
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 |
