mirror of https://github.com/fafhrd91/actix-web
pass `System` re-export to `rt::main` macro
This commit is contained in:
parent
dbeab7c7d9
commit
337558a5c9
|
@ -173,7 +173,7 @@ pub fn main(_: TokenStream, item: TokenStream) -> TokenStream {
|
||||||
use quote::quote;
|
use quote::quote;
|
||||||
let input = syn::parse_macro_input!(item as syn::ItemFn);
|
let input = syn::parse_macro_input!(item as syn::ItemFn);
|
||||||
(quote! {
|
(quote! {
|
||||||
#[actix_web::rt::main]
|
#[actix_web::rt::main(system = "::actix_web::rt::System")]
|
||||||
#input
|
#input
|
||||||
})
|
})
|
||||||
.into()
|
.into()
|
||||||
|
|
Loading…
Reference in New Issue