summaryrefslogtreecommitdiff
path: root/macros/src/node.rs
diff options
context:
space:
mode:
Diffstat (limited to 'macros/src/node.rs')
-rw-r--r--macros/src/node.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/macros/src/node.rs b/macros/src/node.rs
index dfbd9078..1d05b9a6 100644
--- a/macros/src/node.rs
+++ b/macros/src/node.rs
@@ -326,12 +326,12 @@ fn create_set_field_method(field: &Field) -> TokenStream {
let doc = format!("Create a style property for the `{}` field.", name);
quote! {
#[doc = #doc]
- #vis fn #set_ident(#ident: #ty) -> ::typst::model::Property {
- ::typst::model::Property::new(
+ #vis fn #set_ident(#ident: #ty) -> ::typst::model::Style {
+ ::typst::model::Style::Property(::typst::model::Property::new(
::typst::model::NodeId::of::<Self>(),
#name.into(),
#ident.into()
- )
+ ))
}
}
}