summaryrefslogtreecommitdiff
path: root/src/library/pad.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-06-11 14:42:20 +0200
committerLaurenz <laurmaedje@gmail.com>2021-06-11 14:42:20 +0200
commit4017b5a9f67e06145129d75de452c8a42e2d2f5a (patch)
tree8ce9c6f80faa75ed62d4f7fbe31d3ceee6e8d4ba /src/library/pad.rs
parent4dbd9285c91d59d527f4324df4aaf239ecb007ca (diff)
Push some nodes directly into the stack
Diffstat (limited to 'src/library/pad.rs')
-rw-r--r--src/library/pad.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/pad.rs b/src/library/pad.rs
index 6b944c9c..5fa56567 100644
--- a/src/library/pad.rs
+++ b/src/library/pad.rs
@@ -32,6 +32,6 @@ pub fn pad(ctx: &mut EvalContext, args: &mut FuncArgs) -> Value {
Value::template("pad", move |ctx| {
let child = ctx.exec_template_stack(&body).into();
- ctx.push(PadNode { padding, child });
+ ctx.push_into_stack(PadNode { padding, child });
})
}