aboutsummaryrefslogtreecommitdiff
path: root/src/di_container
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2023-09-17 23:16:09 +0200
committerHampusM <hampus@hampusmat.com>2023-09-17 23:16:09 +0200
commite4fdf58b42c61482741cb12e1faa24cbd50698e8 (patch)
treeae4f34ffa5e7db28f06b5ae3a040ba406b4eae4d /src/di_container
parenta1ddd1bc6e1af0d98b87126d3e86da30bc1d3f1c (diff)
refactor: move castable factory to directory module
Diffstat (limited to 'src/di_container')
-rw-r--r--src/di_container/blocking/binding/builder.rs4
-rw-r--r--src/di_container/blocking/mod.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/di_container/blocking/binding/builder.rs b/src/di_container/blocking/binding/builder.rs
index 8eebcc0..6f873d0 100644
--- a/src/di_container/blocking/binding/builder.rs
+++ b/src/di_container/blocking/binding/builder.rs
@@ -183,7 +183,7 @@ where
Interface: Fn<Args, Output = crate::ptr::TransientPtr<Return>>,
Func: Fn(&DIContainer) -> Box<Interface>,
{
- use crate::private::castable_factory::blocking::CastableFactory;
+ use crate::private::castable_factory::CastableFactory;
if self
.di_container
@@ -271,7 +271,7 @@ where
dyn Fn<(), Output = crate::ptr::TransientPtr<Return>>,
>,
{
- use crate::private::castable_factory::blocking::CastableFactory;
+ use crate::private::castable_factory::CastableFactory;
if self
.di_container
diff --git a/src/di_container/blocking/mod.rs b/src/di_container/blocking/mod.rs
index a38b5da..69efe9a 100644
--- a/src/di_container/blocking/mod.rs
+++ b/src/di_container/blocking/mod.rs
@@ -445,7 +445,7 @@ mod tests
#[cfg(feature = "factory")]
fn can_get_factory() -> Result<(), Box<dyn Error>>
{
- use crate::private::castable_factory::blocking::CastableFactory;
+ use crate::private::castable_factory::CastableFactory;
use crate::ptr::FactoryPtr;
trait IUserManager
@@ -522,7 +522,7 @@ mod tests
#[cfg(feature = "factory")]
fn can_get_factory_named() -> Result<(), Box<dyn Error>>
{
- use crate::private::castable_factory::blocking::CastableFactory;
+ use crate::private::castable_factory::CastableFactory;
use crate::ptr::FactoryPtr;
trait IUserManager