🚨 (macros): Corrige warning de clippy en expand_entry

This commit is contained in:
Manuel Cillero 2026-08-17 18:26:38 +02:00
parent fe2b2c176f
commit 1453764462

View file

@ -476,7 +476,7 @@ pub fn test(_: TokenStream, item: TokenStream) -> TokenStream {
// Genera la función síncrona que envuelve el cuerpo asíncrono original, común a `main` y `test`.
fn expand_entry(input: ItemFn, is_test: bool) -> TokenStream {
if input.sig.asyncness.is_none() {
return syn::Error::new_spanned(&input.sig.fn_token, "the function must be `async`")
return syn::Error::new_spanned(input.sig.fn_token, "the function must be `async`")
.to_compile_error()
.into();
}