From a1ddd1bc6e1af0d98b87126d3e86da30bc1d3f1c Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 17 Sep 2023 13:32:06 +0200 Subject: refactor!: make the blocking DI container not inside a Rc BREAKING CHANGE: The blocking DI container is no longer inside of a Rc. This affects BindingBuilder, BindingScopeConfigurator, BindingWhenConfigurator & Injectable --- src/private/factory.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/private/factory.rs') diff --git a/src/private/factory.rs b/src/private/factory.rs index 23b4e8f..94e1023 100644 --- a/src/private/factory.rs +++ b/src/private/factory.rs @@ -1,5 +1,3 @@ -use std::rc::Rc; - use crate::private::cast::CastFrom; use crate::ptr::TransientPtr; @@ -8,7 +6,7 @@ pub trait IFactory: CastFrom where ReturnInterface: 'static + ?Sized, { - fn call(&self, di_container: Rc) -> TransientPtr; + fn call(&self, di_container: &DIContainerT) -> TransientPtr; } /// Interface for a threadsafe factory. -- cgit v1.2.3-18-g5258