From 6e764480ee150146afa9d629777433f8239fa1ba Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 6 Nov 2022 19:21:41 +0100 Subject: refactor: fix unused self clippy lint in blocking DI container --- src/di_container/blocking/mod.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/di_container/blocking') diff --git a/src/di_container/blocking/mod.rs b/src/di_container/blocking/mod.rs index a54912b..97cca59 100644 --- a/src/di_container/blocking/mod.rs +++ b/src/di_container/blocking/mod.rs @@ -175,7 +175,11 @@ impl IDIContainer for DIContainer let binding_providable = self.get_binding_providable::(name, dependency_history)?; - self.handle_binding_providable(binding_providable) + #[cfg(feature = "factory")] + return self.handle_binding_providable(binding_providable); + + #[cfg(not(feature = "factory"))] + Self::handle_binding_providable(binding_providable) } } @@ -214,7 +218,7 @@ impl details::DIContainerInternals for DIContainer impl DIContainer { fn handle_binding_providable( - self: &Rc, + #[cfg(feature = "factory")] self: &Rc, binding_providable: Providable, ) -> Result, DIContainerError> where -- cgit v1.2.3-18-g5258