From c936439bfac9e35958f685a52abb51d781e70a7c Mon Sep 17 00:00:00 2001 From: HampusM Date: Wed, 4 Oct 2023 11:15:47 +0200 Subject: refactor: remove unused import warning in async DI container module --- src/di_container/asynchronous/mod.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/di_container/asynchronous') 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( - factory_binding: Arc, + factory_binding: std::sync::Arc< + dyn crate::private::any_factory::AnyThreadsafeFactory, + >, binding_kind: &'static str, - ) -> Result, AsyncDIContainerError> + ) -> Result, AsyncDIContainerError> { factory_binding.cast::().map_err(|err| match err { CastError::NotArcCastable(_) => { -- cgit v1.2.3-18-g5258