1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-03-21 07:11:58 +01:00

fix macros code

This commit is contained in:
Rob Ede 2021-01-09 14:58:15 +00:00
parent b0a8f8411b
commit d4c46b7da9
No known key found for this signature in database
GPG Key ID: C2A3B36E841A91E6

View File

@ -36,16 +36,6 @@ pub fn main(_: TokenStream, item: TokenStream) -> TokenStream {
sig.asyncness = None; sig.asyncness = None;
if cfg!(feature = "actix-reexport") {
(quote! {
#(#attrs)*
#vis #sig {
actix::System::new(stringify!(#name))
.block_on(async move { #body })
}
})
.into()
} else {
(quote! { (quote! {
#(#attrs)* #(#attrs)*
#vis #sig { #vis #sig {
@ -55,7 +45,6 @@ pub fn main(_: TokenStream, item: TokenStream) -> TokenStream {
}) })
.into() .into()
} }
}
/// Marks async test function to be executed by actix runtime. /// Marks async test function to be executed by actix runtime.
/// ///