1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-06-27 19:59:02 +02:00

add license files to actix-macros

This commit is contained in:
Nikolay Kim
2019-12-14 23:01:55 +06:00
parent 37bedff6fb
commit a7ac1a76ed
4 changed files with 4 additions and 2 deletions

View File

@ -71,7 +71,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.ident),
format!("only async fn is supported, {}", input.sig.ident),
)
.to_compile_error()
.into();