aboutsummaryrefslogtreecommitdiff
path: root/src/private/factory.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/private/factory.rs')
-rw-r--r--src/private/factory.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/private/factory.rs b/src/private/factory.rs
index c1672e1..7191c2c 100644
--- a/src/private/factory.rs
+++ b/src/private/factory.rs
@@ -1,6 +1,3 @@
-#[cfg(feature = "async")]
-use std::sync::Arc;
-
use crate::private::cast::CastFrom;
use crate::ptr::TransientPtr;
@@ -19,5 +16,5 @@ pub trait IThreadsafeFactory<ReturnInterface, DIContainerT>:
where
ReturnInterface: 'static + ?Sized,
{
- fn call(&self, di_container: Arc<DIContainerT>) -> TransientPtr<ReturnInterface>;
+ fn call(&self, di_container: &DIContainerT) -> TransientPtr<ReturnInterface>;
}