summaryrefslogtreecommitdiff
path: root/src/library/container.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-02-17 15:47:54 +0100
committerLaurenz <laurmaedje@gmail.com>2022-02-17 17:32:56 +0100
commitc5e67af22bd6242366819879be84c10c4dd135be (patch)
treed857b99b26401d1b3b74c4cebacbf086c25bef40 /src/library/container.rs
parent3d965ae6a479636a13b2e2f2344e8d97bedece1f (diff)
Merge eval and layout contexts into `Vm`
Diffstat (limited to 'src/library/container.rs')
-rw-r--r--src/library/container.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/container.rs b/src/library/container.rs
index 382be262..fafa7103 100644
--- a/src/library/container.rs
+++ b/src/library/container.rs
@@ -7,7 +7,7 @@ pub struct BoxNode;
#[class]
impl BoxNode {
- fn construct(_: &mut EvalContext, args: &mut Args) -> TypResult<Template> {
+ fn construct(_: &mut Vm, args: &mut Args) -> TypResult<Template> {
let width = args.named("width")?;
let height = args.named("height")?;
let body: LayoutNode = args.find()?.unwrap_or_default();
@@ -20,7 +20,7 @@ pub struct BlockNode;
#[class]
impl BlockNode {
- fn construct(_: &mut EvalContext, args: &mut Args) -> TypResult<Template> {
+ fn construct(_: &mut Vm, args: &mut Args) -> TypResult<Template> {
Ok(Template::Block(args.find()?.unwrap_or_default()))
}
}