From 9e1edb7c0e1021a02766bd539c151eefc53ee0ef Mon Sep 17 00:00:00 2001 From: HampusM Date: Wed, 16 Aug 2023 18:46:09 +0200 Subject: chore: fix warnings when only the async feature enabled --- src/di_container/asynchronous/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/di_container') diff --git a/src/di_container/asynchronous/mod.rs b/src/di_container/asynchronous/mod.rs index d330f4a..0db6782 100644 --- a/src/di_container/asynchronous/mod.rs +++ b/src/di_container/asynchronous/mod.rs @@ -65,7 +65,7 @@ use crate::private::cast::arc::CastArc; use crate::private::cast::boxed::CastBox; use crate::private::cast::error::CastError; use crate::provider::r#async::{AsyncProvidable, IAsyncProvider}; -use crate::ptr::{SomePtr, TransientPtr}; +use crate::ptr::SomePtr; use crate::util::use_dependency_history; use_dependency_history!(); @@ -306,6 +306,7 @@ impl AsyncDIContainer #[cfg(feature = "factory")] AsyncProvidable::DefaultFactory(binding) => { use crate::private::factory::IThreadsafeFactory; + use crate::ptr::TransientPtr; let default_factory = Self::cast_factory_binding::< dyn IThreadsafeFactory< @@ -319,6 +320,7 @@ impl AsyncDIContainer #[cfg(feature = "factory")] AsyncProvidable::AsyncDefaultFactory(binding) => { use crate::private::factory::IThreadsafeFactory; + use crate::ptr::TransientPtr; let async_default_factory = Self::cast_factory_binding::< dyn IThreadsafeFactory< -- cgit v1.2.3-18-g5258