aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-09-18 12:41:17 +0200
committerHampusM <hampus@hampusmat.com>2022-09-18 12:41:17 +0200
commit8d0e981717aa15ce6cfd9b04e489be73623f1e92 (patch)
tree5f3b803b25dbdb592ba0c85ab25a787ebbc0bef7
parenta93fc9fb080151f7ed66af7a923db544a41556cd (diff)
refactor: prevent look for default factory without factory feature
-rw-r--r--src/async_di_container.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/async_di_container.rs b/src/async_di_container.rs
index ef0a540..6f87f1b 100644
--- a/src/async_di_container.rs
+++ b/src/async_di_container.rs
@@ -473,6 +473,7 @@ impl AsyncDIContainer
factory(self.clone()).into(),
))
}
+ #[cfg(feature = "factory")]
AsyncProvidable::DefaultFactory(default_factory_binding) => {
use crate::interfaces::factory::IFactory;