diff options
Diffstat (limited to 'src/private/factory.rs')
-rw-r--r-- | src/private/factory.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/private/factory.rs b/src/private/factory.rs index 8b8354d..84b00c6 100644 --- a/src/private/factory.rs +++ b/src/private/factory.rs @@ -15,7 +15,7 @@ where /// Interface for a threadsafe factory. #[cfg(feature = "async")] pub trait IThreadsafeFactory<Args, ReturnInterface>: - Fn<Args, Output = TransientPtr<ReturnInterface>> + crate::private::cast::CastFromSync + Fn<Args, Output = TransientPtr<ReturnInterface>> + crate::private::cast::CastFromArc where Args: Tuple, ReturnInterface: 'static + ?Sized, |