Fix clippy lints

This commit is contained in:
Jonas Platte
2022-11-05 11:33:27 +01:00
parent 21475f94ff
commit 36f24990c8
5 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -365,7 +365,7 @@ fn check_future_send(item_fn: &ItemFn) -> TokenStream {
match &item_fn.sig.output {
syn::ReturnType::Default => {
return syn::Error::new_spanned(
&item_fn.sig.fn_token,
item_fn.sig.fn_token,
"Handlers must be `async fn`s",
)
.into_compile_error();