aboutsummaryrefslogtreecommitdiff
path: root/src/provider/blocking.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/provider/blocking.rs')
-rw-r--r--src/provider/blocking.rs12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/provider/blocking.rs b/src/provider/blocking.rs
index ebe0c37..ea506ab 100644
--- a/src/provider/blocking.rs
+++ b/src/provider/blocking.rs
@@ -16,11 +16,9 @@ where
Transient(TransientPtr<dyn Injectable<DIContainerType, DependencyHistoryType>>),
Singleton(SingletonPtr<dyn Injectable<DIContainerType, DependencyHistoryType>>),
#[cfg(feature = "factory")]
- Factory(crate::ptr::FactoryPtr<dyn crate::interfaces::any_factory::AnyFactory>),
+ Factory(crate::ptr::FactoryPtr<dyn crate::private::any_factory::AnyFactory>),
#[cfg(feature = "factory")]
- DefaultFactory(
- crate::ptr::FactoryPtr<dyn crate::interfaces::any_factory::AnyFactory>,
- ),
+ DefaultFactory(crate::ptr::FactoryPtr<dyn crate::private::any_factory::AnyFactory>),
}
#[cfg_attr(test, mockall::automock, allow(dead_code))]
@@ -135,7 +133,7 @@ where
#[cfg(feature = "factory")]
pub struct FactoryProvider
{
- factory: crate::ptr::FactoryPtr<dyn crate::interfaces::any_factory::AnyFactory>,
+ factory: crate::ptr::FactoryPtr<dyn crate::private::any_factory::AnyFactory>,
is_default_factory: bool,
}
@@ -143,7 +141,7 @@ pub struct FactoryProvider
impl FactoryProvider
{
pub fn new(
- factory: crate::ptr::FactoryPtr<dyn crate::interfaces::any_factory::AnyFactory>,
+ factory: crate::ptr::FactoryPtr<dyn crate::private::any_factory::AnyFactory>,
is_default_factory: bool,
) -> Self
{
@@ -239,7 +237,7 @@ mod tests
#[cfg(feature = "factory")]
fn factory_provider_works() -> Result<(), Box<dyn Error>>
{
- use crate::interfaces::any_factory::AnyFactory;
+ use crate::private::any_factory::AnyFactory;
use crate::ptr::FactoryPtr;
#[derive(Debug)]