diff options
Diffstat (limited to 'examples/factory')
-rw-r--r-- | examples/factory/bootstrap.rs | 2 | ||||
-rw-r--r-- | examples/factory/main.rs | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/examples/factory/bootstrap.rs b/examples/factory/bootstrap.rs index f8bef6e..e535dd2 100644 --- a/examples/factory/bootstrap.rs +++ b/examples/factory/bootstrap.rs @@ -1,8 +1,8 @@ use std::error::Error; use std::rc::Rc; +use syrette::di_container::blocking::prelude::*; use syrette::ptr::TransientPtr; -use syrette::DIContainer; use crate::interfaces::user::{IUser, IUserFactory}; use crate::interfaces::user_manager::IUserManager; diff --git a/examples/factory/main.rs b/examples/factory/main.rs index 0f1a97b..d428717 100644 --- a/examples/factory/main.rs +++ b/examples/factory/main.rs @@ -9,8 +9,9 @@ mod user_manager; use std::error::Error; -use bootstrap::bootstrap; +use syrette::di_container::blocking::prelude::*; +use crate::bootstrap::bootstrap; use crate::interfaces::user_manager::IUserManager; fn main() -> Result<(), Box<dyn Error>> |