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/errors/di_container.rs | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/errors/di_container.rs') diff --git a/src/errors/di_container.rs b/src/errors/di_container.rs index 4a74b5d..65cd9d1 100644 --- a/src/errors/di_container.rs +++ b/src/errors/di_container.rs @@ -29,10 +29,6 @@ pub enum DIContainerError /// No binding exists for a interface. #[error("No binding exists for interface '{0}'")] BindingNotFound(&'static str), - - /// The binding for a interface is a factory but the factory feature isn't enabled. - #[error("The binding for interface '{0}' is a factory but the factory feature isn't enabled")] - CantHandleFactoryBinding(&'static str), } /// Error type for [`BindingBuilder`]. -- cgit v1.2.3-18-g5258