aboutsummaryrefslogtreecommitdiff
path: root/src/castable_factory
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-09-24 17:31:16 +0200
committerHampusM <hampus@hampusmat.com>2022-09-24 17:33:10 +0200
commitfdd7f824fd1244226ca86f525f8439744676688f (patch)
tree073019e506e36578caeab894835ccf51dc5d7584 /src/castable_factory
parentfebfb927b27ab03041500b16c65bdbc0624a5a72 (diff)
feat: add bind async default factories to async DI container
Diffstat (limited to 'src/castable_factory')
-rw-r--r--src/castable_factory/mod.rs2
-rw-r--r--src/castable_factory/threadsafe.rs4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/castable_factory/mod.rs b/src/castable_factory/mod.rs
index 530cc82..e81b842 100644
--- a/src/castable_factory/mod.rs
+++ b/src/castable_factory/mod.rs
@@ -1,2 +1,4 @@
pub mod blocking;
+
+#[cfg(feature = "async")]
pub mod threadsafe;
diff --git a/src/castable_factory/threadsafe.rs b/src/castable_factory/threadsafe.rs
index 7be055c..b91dceb 100644
--- a/src/castable_factory/threadsafe.rs
+++ b/src/castable_factory/threadsafe.rs
@@ -1,6 +1,6 @@
#![allow(clippy::module_name_repetitions)]
use crate::interfaces::any_factory::{AnyFactory, AnyThreadsafeFactory};
-use crate::interfaces::factory::IFactory;
+use crate::interfaces::factory::IThreadsafeFactory;
use crate::ptr::TransientPtr;
pub struct ThreadsafeCastableFactory<Args, ReturnInterface>
@@ -26,7 +26,7 @@ where
}
}
-impl<Args, ReturnInterface> IFactory<Args, ReturnInterface>
+impl<Args, ReturnInterface> IThreadsafeFactory<Args, ReturnInterface>
for ThreadsafeCastableFactory<Args, ReturnInterface>
where
Args: 'static,