diff options
Diffstat (limited to 'src/castable_factory')
-rw-r--r-- | src/castable_factory/mod.rs | 2 | ||||
-rw-r--r-- | src/castable_factory/threadsafe.rs | 4 |
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, |