aboutsummaryrefslogtreecommitdiff
path: root/src/provider/blocking.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/provider/blocking.rs')
-rw-r--r--src/provider/blocking.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/provider/blocking.rs b/src/provider/blocking.rs
index 13674b9..69bbe78 100644
--- a/src/provider/blocking.rs
+++ b/src/provider/blocking.rs
@@ -1,5 +1,6 @@
#![allow(clippy::module_name_repetitions)]
use std::marker::PhantomData;
+use std::rc::Rc;
use crate::errors::injectable::InjectableError;
use crate::interfaces::injectable::Injectable;
@@ -19,7 +20,7 @@ pub trait IProvider
{
fn provide(
&self,
- di_container: &DIContainer,
+ di_container: &Rc<DIContainer>,
dependency_history: Vec<&'static str>,
) -> Result<Providable, InjectableError>;
}
@@ -49,7 +50,7 @@ where
{
fn provide(
&self,
- di_container: &DIContainer,
+ di_container: &Rc<DIContainer>,
dependency_history: Vec<&'static str>,
) -> Result<Providable, InjectableError>
{
@@ -83,7 +84,7 @@ where
{
fn provide(
&self,
- _di_container: &DIContainer,
+ _di_container: &Rc<DIContainer>,
_dependency_history: Vec<&'static str>,
) -> Result<Providable, InjectableError>
{
@@ -113,7 +114,7 @@ impl IProvider for FactoryProvider
{
fn provide(
&self,
- _di_container: &DIContainer,
+ _di_container: &Rc<DIContainer>,
_dependency_history: Vec<&'static str>,
) -> Result<Providable, InjectableError>
{