From 3e3a853615e97ee7c3aef09736eae8170c6fd78e Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 17 Sep 2023 13:08:23 +0200 Subject: refactor: replace castable factory Fn impl with method --- src/di_container/blocking/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/di_container') diff --git a/src/di_container/blocking/mod.rs b/src/di_container/blocking/mod.rs index 702141a..09e7db1 100644 --- a/src/di_container/blocking/mod.rs +++ b/src/di_container/blocking/mod.rs @@ -215,7 +215,7 @@ impl DIContainer binding_kind: "factory", })?; - Ok(SomePtr::Factory(factory(self.clone()).into())) + Ok(SomePtr::Factory(factory.call(self.clone()).into())) } #[cfg(feature = "factory")] Providable::DefaultFactory(factory_binding) => { @@ -234,7 +234,7 @@ impl DIContainer binding_kind: "default factory", })?; - Ok(SomePtr::Transient(default_factory(self.clone())())) + Ok(SomePtr::Transient(default_factory.call(self.clone())())) } } } -- cgit v1.2.3-18-g5258