diff options
author | HampusM <hampus@hampusmat.com> | 2023-08-18 21:53:36 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2023-08-18 21:53:36 +0200 |
commit | d9fb89865165bdd31807c3fbec2def6d3ebb7b53 (patch) | |
tree | 6bc1c5d92e6d2737c1525c933efbc19f632b0dde /src/di_container | |
parent | 055a98aec1fe534d78414d630ab5ba2b789cba64 (diff) |
refactor: replace use_dependency_history with a more generic macro
Diffstat (limited to 'src/di_container')
-rw-r--r-- | src/di_container/asynchronous/binding/builder.rs | 4 | ||||
-rw-r--r-- | src/di_container/asynchronous/binding/scope_configurator.rs | 4 | ||||
-rw-r--r-- | src/di_container/asynchronous/mod.rs | 4 | ||||
-rw-r--r-- | src/di_container/blocking/binding/builder.rs | 4 | ||||
-rw-r--r-- | src/di_container/blocking/binding/scope_configurator.rs | 4 | ||||
-rw-r--r-- | src/di_container/blocking/mod.rs | 4 |
6 files changed, 12 insertions, 12 deletions
diff --git a/src/di_container/asynchronous/binding/builder.rs b/src/di_container/asynchronous/binding/builder.rs index 9fa5115..5862d63 100644 --- a/src/di_container/asynchronous/binding/builder.rs +++ b/src/di_container/asynchronous/binding/builder.rs @@ -11,9 +11,9 @@ use crate::di_container::asynchronous::binding::when_configurator::AsyncBindingW use crate::di_container::asynchronous::IAsyncDIContainer; use crate::errors::async_di_container::AsyncBindingBuilderError; use crate::interfaces::async_injectable::AsyncInjectable; -use crate::util::use_dependency_history; +use crate::util::use_double; -use_dependency_history!(); +use_double!(crate::dependency_history::DependencyHistory); /// Alias for a threadsafe boxed function. #[cfg(feature = "factory")] diff --git a/src/di_container/asynchronous/binding/scope_configurator.rs b/src/di_container/asynchronous/binding/scope_configurator.rs index a4a684b..0b5bad8 100644 --- a/src/di_container/asynchronous/binding/scope_configurator.rs +++ b/src/di_container/asynchronous/binding/scope_configurator.rs @@ -10,9 +10,9 @@ use crate::errors::async_di_container::AsyncBindingScopeConfiguratorError; use crate::interfaces::async_injectable::AsyncInjectable; use crate::provider::r#async::{AsyncSingletonProvider, AsyncTransientTypeProvider}; use crate::ptr::ThreadsafeSingletonPtr; -use crate::util::use_dependency_history; +use crate::util::use_double; -use_dependency_history!(); +use_double!(crate::dependency_history::DependencyHistory); /// Scope configurator for a binding for type `Interface` inside a [`IAsyncDIContainer`]. /// diff --git a/src/di_container/asynchronous/mod.rs b/src/di_container/asynchronous/mod.rs index 0db6782..2939ddd 100644 --- a/src/di_container/asynchronous/mod.rs +++ b/src/di_container/asynchronous/mod.rs @@ -66,9 +66,9 @@ use crate::private::cast::boxed::CastBox; use crate::private::cast::error::CastError; use crate::provider::r#async::{AsyncProvidable, IAsyncProvider}; use crate::ptr::SomePtr; -use crate::util::use_dependency_history; +use crate::util::use_double; -use_dependency_history!(); +use_double!(crate::dependency_history::DependencyHistory); pub mod binding; pub mod prelude; diff --git a/src/di_container/blocking/binding/builder.rs b/src/di_container/blocking/binding/builder.rs index 91855f5..0c323ec 100644 --- a/src/di_container/blocking/binding/builder.rs +++ b/src/di_container/blocking/binding/builder.rs @@ -11,9 +11,9 @@ use crate::di_container::blocking::binding::when_configurator::BindingWhenConfig use crate::di_container::blocking::IDIContainer; use crate::errors::di_container::BindingBuilderError; use crate::interfaces::injectable::Injectable; -use crate::util::use_dependency_history; +use crate::util::use_double; -use_dependency_history!(); +use_double!(crate::dependency_history::DependencyHistory); /// Binding builder for type `Interface` inside a [`IDIContainer`]. /// diff --git a/src/di_container/blocking/binding/scope_configurator.rs b/src/di_container/blocking/binding/scope_configurator.rs index 0e2437f..0aefa93 100644 --- a/src/di_container/blocking/binding/scope_configurator.rs +++ b/src/di_container/blocking/binding/scope_configurator.rs @@ -10,9 +10,9 @@ use crate::errors::di_container::BindingScopeConfiguratorError; use crate::interfaces::injectable::Injectable; use crate::provider::blocking::{SingletonProvider, TransientTypeProvider}; use crate::ptr::SingletonPtr; -use crate::util::use_dependency_history; +use crate::util::use_double; -use_dependency_history!(); +use_double!(crate::dependency_history::DependencyHistory); /// Scope configurator for a binding for type `Interface` inside a [`IDIContainer`]. /// diff --git a/src/di_container/blocking/mod.rs b/src/di_container/blocking/mod.rs index aa89aad..5a27f78 100644 --- a/src/di_container/blocking/mod.rs +++ b/src/di_container/blocking/mod.rs @@ -61,9 +61,9 @@ use crate::private::cast::boxed::CastBox; use crate::private::cast::rc::CastRc; use crate::provider::blocking::{IProvider, Providable}; use crate::ptr::SomePtr; -use crate::util::use_dependency_history; +use crate::util::use_double; -use_dependency_history!(); +use_double!(crate::dependency_history::DependencyHistory); pub mod binding; pub mod prelude; |