1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-01-18 23:21:50 +01:00

inclide fn ident to err message

This commit is contained in:
Nikolay Kim 2019-11-26 10:04:46 +06:00
parent 2cf140a869
commit 4546774f4e

View File

@ -70,7 +70,7 @@ pub fn test(_: TokenStream, item: TokenStream) -> TokenStream {
if input.sig.asyncness.is_none() {
return syn::Error::new_spanned(
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()
.into();