diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-02-17 15:47:54 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-02-17 17:32:56 +0100 |
| commit | c5e67af22bd6242366819879be84c10c4dd135be (patch) | |
| tree | d857b99b26401d1b3b74c4cebacbf086c25bef40 /src/library/container.rs | |
| parent | 3d965ae6a479636a13b2e2f2344e8d97bedece1f (diff) | |
Merge eval and layout contexts into `Vm`
Diffstat (limited to 'src/library/container.rs')
| -rw-r--r-- | src/library/container.rs | 4 |
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())) } } |
