diff options
author | HampusM <hampus@hampusmat.com> | 2022-09-18 20:20:53 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-09-18 20:20:53 +0200 |
commit | 6813690e893bc461bd2be60509850a5a80454c6a (patch) | |
tree | f84e5321a0f608beda6b3abbf82de5c9496efc3e /macros | |
parent | 0b914f415cb04c45d8655cae3828af264887d203 (diff) |
feat: add binding async factories to async DI container
Diffstat (limited to 'macros')
-rw-r--r-- | macros/src/lib.rs | 4 |
1 files changed, 1 insertions, 3 deletions
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<Box< - dyn std::future::Future<Output = syrette::ptr::TransientPtr<#output>> - >> + syrette::future::BoxFuture<'static, syrette::ptr::TransientPtr<#output>> } } else { quote! { |