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/provider/async.rs | 4 ++-- src/provider/blocking.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/provider') diff --git a/src/provider/async.rs b/src/provider/async.rs index c2d0bfe..2a241a7 100644 --- a/src/provider/async.rs +++ b/src/provider/async.rs @@ -7,9 +7,9 @@ use crate::di_container::asynchronous::IAsyncDIContainer; use crate::errors::injectable::InjectableError; use crate::interfaces::async_injectable::AsyncInjectable; use crate::ptr::{ThreadsafeSingletonPtr, TransientPtr}; -use crate::util::use_dependency_history; +use crate::util::use_double; -use_dependency_history!(); +use_double!(crate::dependency_history::DependencyHistory); #[derive(strum_macros::Display, Debug)] pub enum AsyncProvidable diff --git a/src/provider/blocking.rs b/src/provider/blocking.rs index a18e997..373dabd 100644 --- a/src/provider/blocking.rs +++ b/src/provider/blocking.rs @@ -5,9 +5,9 @@ use crate::di_container::blocking::IDIContainer; use crate::errors::injectable::InjectableError; use crate::interfaces::injectable::Injectable; use crate::ptr::{SingletonPtr, TransientPtr}; -use crate::util::use_dependency_history; +use crate::util::use_double; -use_dependency_history!(); +use_double!(crate::dependency_history::DependencyHistory); #[derive(strum_macros::Display, Debug)] pub enum Providable -- cgit v1.2.3-18-g5258