Use implicit format-args captures where applicable (#1709)

This commit is contained in:
Jonas Platte
2023-01-20 12:04:49 +01:00
committed by GitHub
parent b07918b213
commit 7ecf8bd6cf
16 changed files with 42 additions and 46 deletions
+1 -2
View File
@@ -111,9 +111,8 @@ fn check_extractor_count(item_fn: &ItemFn) -> Option<TokenStream> {
None
} else {
let error_message = format!(
"Handlers cannot take more than {} arguments. \
"Handlers cannot take more than {max_extractors} arguments. \
Use `(a, b): (ExtractorA, ExtractorA)` to further nest extractors",
max_extractors,
);
let error = syn::Error::new_spanned(&item_fn.sig.inputs, error_message).to_compile_error();
Some(error)