From 4546774f4e88189477bf510461ee083694b28804 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Tue, 26 Nov 2019 10:04:46 +0600 Subject: [PATCH] inclide fn ident to err message --- actix-macros/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actix-macros/src/lib.rs b/actix-macros/src/lib.rs index 884958f6..ea160925 100644 --- a/actix-macros/src/lib.rs +++ b/actix-macros/src/lib.rs @@ -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();