aboutsummaryrefslogtreecommitdiff
path: root/src/private/factory.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2023-09-18 21:45:23 +0200
committerHampusM <hampus@hampusmat.com>2023-09-18 21:45:23 +0200
commitde2e1349f459f7f69226b2decd366be690426ea7 (patch)
tree8312e49ae6007e5226a6ed9e3262855e40b06095 /src/private/factory.rs
parent6d729a4d20944b990c341149729a810a2898cdff (diff)
refactor: replace threadsafe castable factory Fn impl with method
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>;
}