aboutsummaryrefslogtreecommitdiff
path: root/examples/factory/bootstrap.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/factory/bootstrap.rs')
-rw-r--r--examples/factory/bootstrap.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/factory/bootstrap.rs b/examples/factory/bootstrap.rs
index 5086b1a..1967c6a 100644
--- a/examples/factory/bootstrap.rs
+++ b/examples/factory/bootstrap.rs
@@ -1,4 +1,4 @@
-use syrette::ptr::InterfacePtr;
+use syrette::ptr::TransientPtr;
use syrette::DIContainer;
// Interfaces
@@ -14,8 +14,8 @@ pub fn bootstrap() -> DIContainer
di_container
.bind::<IUserFactory>()
.to_factory(&|name, date_of_birth, password| {
- let user: InterfacePtr<dyn IUser> =
- InterfacePtr::new(User::new(name, date_of_birth, password));
+ let user: TransientPtr<dyn IUser> =
+ TransientPtr::new(User::new(name, date_of_birth, password));
user
});