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.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/private/factory.rs b/src/private/factory.rs
index 730338f..c1672e1 100644
--- a/src/private/factory.rs
+++ b/src/private/factory.rs
@@ -15,9 +15,9 @@ where
/// Interface for a threadsafe factory.
#[cfg(feature = "async")]
pub trait IThreadsafeFactory<ReturnInterface, DIContainerT>:
- Fn<(Arc<DIContainerT>,), Output = TransientPtr<ReturnInterface>>
- + crate::private::cast::CastFromArc
+ crate::private::cast::CastFromArc
where
ReturnInterface: 'static + ?Sized,
{
+ fn call(&self, di_container: Arc<DIContainerT>) -> TransientPtr<ReturnInterface>;
}