diff options
author | HampusM <hampus@hampusmat.com> | 2022-09-18 12:41:17 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-09-18 12:41:17 +0200 |
commit | 8d0e981717aa15ce6cfd9b04e489be73623f1e92 (patch) | |
tree | 5f3b803b25dbdb592ba0c85ab25a787ebbc0bef7 | |
parent | a93fc9fb080151f7ed66af7a923db544a41556cd (diff) |
refactor: prevent look for default factory without factory feature
-rw-r--r-- | src/async_di_container.rs | 1 |
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; |