aboutsummaryrefslogtreecommitdiff
path: root/src/di_container/asynchronous/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/di_container/asynchronous/mod.rs')
-rw-r--r--src/di_container/asynchronous/mod.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/di_container/asynchronous/mod.rs b/src/di_container/asynchronous/mod.rs
index 7acdf4e..403ea18 100644
--- a/src/di_container/asynchronous/mod.rs
+++ b/src/di_container/asynchronous/mod.rs
@@ -50,7 +50,6 @@
//! }
//! ```
use std::any::type_name;
-use std::sync::Arc;
use crate::di_container::asynchronous::binding::builder::AsyncBindingBuilder;
use crate::di_container::binding_storage::DIContainerBindingStorage;
@@ -416,9 +415,11 @@ impl AsyncDIContainer
#[cfg(feature = "factory")]
fn cast_factory_binding<Type: 'static + ?Sized>(
- factory_binding: Arc<dyn crate::private::any_factory::AnyThreadsafeFactory>,
+ factory_binding: std::sync::Arc<
+ dyn crate::private::any_factory::AnyThreadsafeFactory,
+ >,
binding_kind: &'static str,
- ) -> Result<Arc<Type>, AsyncDIContainerError>
+ ) -> Result<std::sync::Arc<Type>, AsyncDIContainerError>
{
factory_binding.cast::<Type>().map_err(|err| match err {
CastError::NotArcCastable(_) => {