aboutsummaryrefslogtreecommitdiff
path: root/macros/src
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-09-18 20:20:53 +0200
committerHampusM <hampus@hampusmat.com>2022-09-18 20:20:53 +0200
commit6813690e893bc461bd2be60509850a5a80454c6a (patch)
treef84e5321a0f608beda6b3abbf82de5c9496efc3e /macros/src
parent0b914f415cb04c45d8655cae3828af264887d203 (diff)
feat: add binding async factories to async DI container
Diffstat (limited to 'macros/src')
-rw-r--r--macros/src/lib.rs4
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! {