From 4fd0d6b4951b08a20d5378bca75561109dc6d036 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 18 Sep 2023 22:35:58 +0200 Subject: refactor!: make the async DI container not inside a Arc BREAKING CHANGE: The async DI container is no longer inside of a Arc. This affects AsyncBindingBuilder, AsyncBindingScopeConfigurator, AsyncBindingWhenConfigurator & AsyncInjectable --- macros/src/injectable/implementation.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'macros') diff --git a/macros/src/injectable/implementation.rs b/macros/src/injectable/implementation.rs index 3e22f91..b3e57c2 100644 --- a/macros/src/injectable/implementation.rs +++ b/macros/src/injectable/implementation.rs @@ -232,9 +232,8 @@ impl InjectableImpl > for #self_type { fn resolve<'di_container, 'fut>( - #di_container_var: &'di_container std::sync::Arc< - syrette::di_container::asynchronous::AsyncDIContainer - >, + #di_container_var: &'di_container + syrette::di_container::asynchronous::AsyncDIContainer, mut #dependency_history_var: syrette::dependency_history::DependencyHistory ) -> syrette::future::BoxFuture< 'fut, -- cgit v1.2.3-18-g5258