aboutsummaryrefslogtreecommitdiff
path: root/src/errors/di_container.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-08-25 20:46:14 +0200
committerHampusM <hampus@hampusmat.com>2022-08-27 14:29:42 +0200
commitd4078c84a83d121a4e3492955359cedb3b404476 (patch)
treef31fef99fcee6ffd537b7d7adf7981851966feda /src/errors/di_container.rs
parent626e9e56c23863dce33ef211fa51e49cc5fb48e1 (diff)
refactor!: limit FactoryPtr & AnyFactory to the factory feature
BREAKING CHANGE: FactoryPtr has been limited to the factory feature
Diffstat (limited to 'src/errors/di_container.rs')
-rw-r--r--src/errors/di_container.rs4
1 files changed, 0 insertions, 4 deletions
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`].