From d9fb89865165bdd31807c3fbec2def6d3ebb7b53 Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 18 Aug 2023 21:53:36 +0200 Subject: refactor: replace use_dependency_history with a more generic macro --- src/interfaces/async_injectable.rs | 4 ++-- src/interfaces/injectable.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/interfaces') diff --git a/src/interfaces/async_injectable.rs b/src/interfaces/async_injectable.rs index 2364ae1..56b263d 100644 --- a/src/interfaces/async_injectable.rs +++ b/src/interfaces/async_injectable.rs @@ -7,9 +7,9 @@ use crate::errors::injectable::InjectableError; use crate::future::BoxFuture; use crate::private::cast::CastFromArc; use crate::ptr::TransientPtr; -use crate::util::use_dependency_history; +use crate::util::use_double; -use_dependency_history!(); +use_double!(crate::dependency_history::DependencyHistory); /// Interface for structs that can be injected into or be injected to. pub trait AsyncInjectable: CastFromArc diff --git a/src/interfaces/injectable.rs b/src/interfaces/injectable.rs index 82b773a..2622320 100644 --- a/src/interfaces/injectable.rs +++ b/src/interfaces/injectable.rs @@ -6,9 +6,9 @@ use crate::di_container::blocking::IDIContainer; use crate::errors::injectable::InjectableError; use crate::private::cast::CastFrom; use crate::ptr::TransientPtr; -use crate::util::use_dependency_history; +use crate::util::use_double; -use_dependency_history!(); +use_double!(crate::dependency_history::DependencyHistory); /// Interface for structs that can be injected into or be injected to. pub trait Injectable: CastFrom -- cgit v1.2.3-18-g5258