aboutsummaryrefslogtreecommitdiff
path: root/src/test_utils.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2023-08-04 22:03:30 +0200
committerHampusM <hampus@hampusmat.com>2023-08-04 22:03:30 +0200
commitb4718494e3a1759286caca1dd34c01db6c2f1214 (patch)
tree736bde3a1647d7c26c7cc27ce3caf4de2fa665d8 /src/test_utils.rs
parentb4ddc1e626fbd11d784b442d246ddc5f54c35b51 (diff)
refactor!: remove SomeThreadsafePtr & move variants to SomePtr
BREAKING CHANGE: SomeThreadsafePtr has been removed and it's variants have been moved to SomePtr
Diffstat (limited to 'src/test_utils.rs')
-rw-r--r--src/test_utils.rs8
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;
}