summaryrefslogtreecommitdiff
path: root/macros/src
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-11-24 17:39:08 +0100
committerLaurenz <laurmaedje@gmail.com>2022-11-24 17:41:41 +0100
commit8d3c68a1deb28dce2b80ed61f85141180ce6a951 (patch)
treede007203d448d6b6a2df7838e802f85d23ccd1a6 /macros/src
parent5ae81971f299688b05d77af208d7bb44ffce5e2d (diff)
Protect Vm
Diffstat (limited to 'macros/src')
-rw-r--r--macros/src/node.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/macros/src/node.rs b/macros/src/node.rs
index 45e91b2e..d08fc66b 100644
--- a/macros/src/node.rs
+++ b/macros/src/node.rs
@@ -284,7 +284,7 @@ fn create_node_construct_func(node: &Node) -> syn::ImplItemMethod {
node.construct.clone().unwrap_or_else(|| {
parse_quote! {
fn construct(
- _: &mut ::typst::model::Vm,
+ _: &::typst::model::Vm,
_: &mut ::typst::model::Args,
) -> ::typst::diag::SourceResult<::typst::model::Content> {
unimplemented!()