summaryrefslogtreecommitdiff
path: root/crates/typst-macros/src
diff options
context:
space:
mode:
authorBeiri22 <beier1@hs-mittweida.de>2023-08-25 14:27:50 +0200
committerGitHub <noreply@github.com>2023-08-25 14:27:50 +0200
commitea469c2df6378e8ce860217cd100831ae6ee8d9f (patch)
tree1c515a45523117e0e371c02ea63f1c0d292944c5 /crates/typst-macros/src
parent94df32a91973ace83f5f628db3daa19725be11e3 (diff)
calm down clippy even more (#1997)
Diffstat (limited to 'crates/typst-macros/src')
-rw-r--r--crates/typst-macros/src/func.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/crates/typst-macros/src/func.rs b/crates/typst-macros/src/func.rs
index 77edff9a..13a6eb2d 100644
--- a/crates/typst-macros/src/func.rs
+++ b/crates/typst-macros/src/func.rs
@@ -53,11 +53,9 @@ fn prepare(stream: TokenStream, item: &syn::ItemFn) -> Result<Func> {
};
let syn::Pat::Ident(syn::PatIdent {
- by_ref: None,
- mutability: None,
- ident,
- ..
- }) = &*typed.pat else {
+ by_ref: None, mutability: None, ident, ..
+ }) = &*typed.pat
+ else {
bail!(typed.pat, "expected identifier");
};