diff options
Diffstat (limited to 'examples/factory/main.rs')
-rw-r--r-- | examples/factory/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/factory/main.rs b/examples/factory/main.rs index c659f3e..e2e80f1 100644 --- a/examples/factory/main.rs +++ b/examples/factory/main.rs @@ -10,10 +10,10 @@ use bootstrap::bootstrap; use interfaces::user::IUser; use interfaces::user::IUserFactory; use syrette::ptr::FactoryPtr; -use syrette::ptr::InterfacePtr; +use syrette::ptr::TransientPtr; fn add_users( - users: &mut Vec<InterfacePtr<dyn IUser>>, + users: &mut Vec<TransientPtr<dyn IUser>>, user_factory: &FactoryPtr<IUserFactory>, ) { @@ -30,7 +30,7 @@ fn main() let user_factory = di_container.get_factory::<IUserFactory>().unwrap(); - let mut users = Vec::<InterfacePtr<dyn IUser>>::new(); + let mut users = Vec::<TransientPtr<dyn IUser>>::new(); add_users(&mut users, &user_factory); |