diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-02-06 11:52:09 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-02-06 11:52:09 +0100 |
| commit | ea8edfa821f059921550c45d4f0267160b638a04 (patch) | |
| tree | 940c358e400e55bc1ba47faf7c1fa07611af5241 /macros/src/node.rs | |
| parent | 0bb0f1c98fc8eff5d7556bbe9d5801f02237a5c0 (diff) | |
Make Rust happier about the inline documentation
Diffstat (limited to 'macros/src/node.rs')
| -rw-r--r-- | macros/src/node.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/macros/src/node.rs b/macros/src/node.rs index cffac184..b551182f 100644 --- a/macros/src/node.rs +++ b/macros/src/node.rs @@ -336,15 +336,13 @@ fn create_node_properties_func(node: &Node) -> syn::ImplItemMethod { let value_ty = &property.value_ty; let shorthand = matches!(property.shorthand, Some(Shorthand::Positional)); - let mut docs = documentation(&property.attrs); - let example = quote_option(super::func::example(&mut docs, 1)); + let docs = documentation(&property.attrs); let docs = docs.trim(); quote! { ::typst::model::ParamInfo { name: #name, docs: #docs, - example: #example, cast: <#value_ty as ::typst::model::Cast< ::typst::syntax::Spanned<::typst::model::Value> >>::describe(), |
