This commit is contained in:
Greg Johnston 2024-01-10 08:57:11 -05:00
parent 61148026d1
commit c7941f7639

View file

@ -301,6 +301,9 @@ pub fn server_macro_impl(
}}
};
quote! {
// we need this for Actix, for the SendWrapper to count as impl Future
// but non-Actix will have a clippy warning otherwise
#[allow(clippy::manual_async_fn)]
fn run_body(self) -> impl std::future::Future<Output = #return_ty> + Send {
#body
}