diff options
Diffstat (limited to 'src/test_utils.rs')
-rw-r--r-- | src/test_utils.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test_utils.rs b/src/test_utils.rs index 6b351cc..78ad63b 100644 --- a/src/test_utils.rs +++ b/src/test_utils.rs @@ -375,7 +375,7 @@ pub mod mocks use crate::di_container::asynchronous::IAsyncDIContainer; use crate::errors::async_di_container::AsyncDIContainerError; use crate::provider::r#async::IAsyncProvider; - use crate::ptr::SomeThreadsafePtr; + use crate::ptr::SomePtr; mock! { pub AsyncDIContainer<DependencyHistoryType> @@ -397,14 +397,14 @@ pub mod mocks async fn get<Interface>( self: &Arc<Self>, - ) -> Result<SomeThreadsafePtr<Interface>, AsyncDIContainerError> + ) -> Result<SomePtr<Interface>, AsyncDIContainerError> where Interface: 'static + ?Sized + Send + Sync; async fn get_named<Interface>( self: &Arc<Self>, name: &'static str, - ) -> Result<SomeThreadsafePtr<Interface>, AsyncDIContainerError> + ) -> Result<SomePtr<Interface>, AsyncDIContainerError> where Interface: 'static + ?Sized + Send + Sync; @@ -413,7 +413,7 @@ pub mod mocks self: &Arc<Self>, dependency_history: DependencyHistoryType, name: Option<&'static str>, - ) -> Result<SomeThreadsafePtr<Interface>, AsyncDIContainerError> + ) -> Result<SomePtr<Interface>, AsyncDIContainerError> where Interface: 'static + ?Sized + Send + Sync; } |