From d4078c84a83d121a4e3492955359cedb3b404476 Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 25 Aug 2022 20:46:14 +0200 Subject: refactor!: limit FactoryPtr & AnyFactory to the factory feature BREAKING CHANGE: FactoryPtr has been limited to the factory feature --- src/di_container.rs | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/di_container.rs') diff --git a/src/di_container.rs b/src/di_container.rs index 2cda2bf..85b0e7a 100644 --- a/src/di_container.rs +++ b/src/di_container.rs @@ -313,13 +313,6 @@ impl DIContainer } } } - #[cfg(not(feature = "factory"))] - Providable::Factory(_) => { - return Err(DIContainerError::CantHandleFactoryBinding(type_name::< - Interface, - >( - ))); - } } } -- cgit v1.2.3-18-g5258