diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-11-04 09:30:44 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-11-04 11:38:09 +0100 |
| commit | eb951c008beea502042db4a3a0e8d1f8b51f6f52 (patch) | |
| tree | 9856ee4ed0222222669de10e616a580b2a60135e /macros/src | |
| parent | 33928a00dc58250e24da1dae4e5db17e7b598d70 (diff) | |
Style changes
Diffstat (limited to 'macros/src')
| -rw-r--r-- | macros/src/lib.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/macros/src/lib.rs b/macros/src/lib.rs index e57d758e..8e44a8c3 100644 --- a/macros/src/lib.rs +++ b/macros/src/lib.rs @@ -18,7 +18,8 @@ pub fn capability(_: TokenStream, item: TokenStream) -> TokenStream { quote! { #item_trait impl ::typst::model::Capability for dyn #name {} - }.into() + } + .into() } /// Implement `Node` for a struct. @@ -349,10 +350,7 @@ fn parse_property(item: &mut syn::ImplItemConst) -> Result<Property> { let span = property.name.span(); if property.skip && property.shorthand.is_some() { - return Err(Error::new( - span, - "skip and shorthand are mutually exclusive", - )); + return Err(Error::new(span, "skip and shorthand are mutually exclusive")); } if property.referenced && (property.fold || property.resolve) { |
