pass `System` re-export to `rt::main` macro

This commit is contained in:
Ibraheem Ahmed 2021-06-08 09:44:46 -04:00 committed by GitHub
parent dbeab7c7d9
commit 337558a5c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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()