🚨 (macros): Corrige warning de clippy en expand_entry
This commit is contained in:
parent
fe2b2c176f
commit
1453764462
1 changed files with 1 additions and 1 deletions
|
|
@ -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`.
|
// 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 {
|
fn expand_entry(input: ItemFn, is_test: bool) -> TokenStream {
|
||||||
if input.sig.asyncness.is_none() {
|
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()
|
.to_compile_error()
|
||||||
.into();
|
.into();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue