summaryrefslogtreecommitdiff
path: root/macros/src/lib.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-11-04 09:30:44 +0100
committerLaurenz <laurmaedje@gmail.com>2022-11-04 11:38:09 +0100
commiteb951c008beea502042db4a3a0e8d1f8b51f6f52 (patch)
tree9856ee4ed0222222669de10e616a580b2a60135e /macros/src/lib.rs
parent33928a00dc58250e24da1dae4e5db17e7b598d70 (diff)
Style changes
Diffstat (limited to 'macros/src/lib.rs')
-rw-r--r--macros/src/lib.rs8
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) {