diff options
author | HampusM <hampus@hampusmat.com> | 2023-10-04 11:15:47 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2023-10-04 11:15:54 +0200 |
commit | c936439bfac9e35958f685a52abb51d781e70a7c (patch) | |
tree | b4cee6e7e0ad0bcd76b1f53ac1f2fbcf3c879815 | |
parent | b0a1af1e312f23eff7fe68ae17132ccded5cf31c (diff) |
refactor: remove unused import warning in async DI container module
-rw-r--r-- | src/di_container/asynchronous/mod.rs | 7 |
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(_) => { |