From 6813690e893bc461bd2be60509850a5a80454c6a Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 18 Sep 2022 20:20:53 +0200 Subject: feat: add binding async factories to async DI container --- macros/src/lib.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'macros') diff --git a/macros/src/lib.rs b/macros/src/lib.rs index 2715f3d..2cd57f0 100644 --- a/macros/src/lib.rs +++ b/macros/src/lib.rs @@ -225,9 +225,7 @@ pub fn factory(args_stream: TokenStream, type_alias_stream: TokenStream) -> Toke factory_interface.output = parse( if is_async { quote! { - std::pin::Pin> - >> + syrette::future::BoxFuture<'static, syrette::ptr::TransientPtr<#output>> } } else { quote! { -- cgit v1.2.3-18-g5258