From 8651f84f205da7a89f2fc7333d1dd8de0d80a22b Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 17 Sep 2022 16:12:45 +0200 Subject: refactor!: make async DI container be used inside of a Arc BREAKING CHANGE: The async DI container is to be used inside of a Arc & it also no longer implements Default --- macros/src/injectable_impl.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'macros/src') diff --git a/macros/src/injectable_impl.rs b/macros/src/injectable_impl.rs index af1fa68..bf5c96c 100644 --- a/macros/src/injectable_impl.rs +++ b/macros/src/injectable_impl.rs @@ -91,7 +91,7 @@ impl InjectableImpl impl #generics syrette::interfaces::async_injectable::AsyncInjectable for #self_type { async fn resolve( - #di_container_var: &syrette::async_di_container::AsyncDIContainer, + #di_container_var: &std::sync::Arc, mut #dependency_history_var: Vec<&'static str>, ) -> Result< syrette::ptr::TransientPtr, -- cgit v1.2.3-18-g5258