mirror of
https://github.com/fafhrd91/actix-net
synced 2025-02-07 17:04:23 +01:00
inclide fn token to err message
This commit is contained in:
parent
e76ea8e80c
commit
2cf140a869
@ -68,7 +68,10 @@ pub fn test(_: TokenStream, item: TokenStream) -> TokenStream {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if input.sig.asyncness.is_none() {
|
if input.sig.asyncness.is_none() {
|
||||||
return syn::Error::new_spanned(input.sig.fn_token, "only async fn is supported")
|
return syn::Error::new_spanned(
|
||||||
|
input.sig.fn_token,
|
||||||
|
format!("only async fn is supported, {:?}", input.sig.fn_token),
|
||||||
|
)
|
||||||
.to_compile_error()
|
.to_compile_error()
|
||||||
.into();
|
.into();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user