diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-11-24 17:39:08 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-11-24 17:41:41 +0100 |
| commit | 8d3c68a1deb28dce2b80ed61f85141180ce6a951 (patch) | |
| tree | de007203d448d6b6a2df7838e802f85d23ccd1a6 /library/src/layout/container.rs | |
| parent | 5ae81971f299688b05d77af208d7bb44ffce5e2d (diff) | |
Protect Vm
Diffstat (limited to 'library/src/layout/container.rs')
| -rw-r--r-- | library/src/layout/container.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/src/layout/container.rs b/library/src/layout/container.rs index 408f6720..9a6ccb9f 100644 --- a/library/src/layout/container.rs +++ b/library/src/layout/container.rs @@ -12,7 +12,7 @@ pub struct BoxNode { #[node(LayoutInline)] impl BoxNode { - fn construct(_: &mut Vm, args: &mut Args) -> SourceResult<Content> { + fn construct(_: &Vm, args: &mut Args) -> SourceResult<Content> { let width = args.named("width")?; let height = args.named("height")?; let body = args.eat::<Content>()?.unwrap_or_default(); @@ -70,7 +70,7 @@ impl BlockNode { #[property(skip)] pub const BELOW: VNode = VNode::block_spacing(Em::new(1.2).into()); - fn construct(_: &mut Vm, args: &mut Args) -> SourceResult<Content> { + fn construct(_: &Vm, args: &mut Args) -> SourceResult<Content> { Ok(Self(args.eat()?.unwrap_or_default()).pack()) } |
