diff options
author | HampusM <hampus@hampusmat.com> | 2023-09-18 21:45:23 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2023-09-18 21:45:23 +0200 |
commit | de2e1349f459f7f69226b2decd366be690426ea7 (patch) | |
tree | 8312e49ae6007e5226a6ed9e3262855e40b06095 /src/private/factory.rs | |
parent | 6d729a4d20944b990c341149729a810a2898cdff (diff) |
refactor: replace threadsafe castable factory Fn impl with method
Diffstat (limited to 'src/private/factory.rs')
-rw-r--r-- | src/private/factory.rs | 4 |
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>; } |