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