aboutsummaryrefslogtreecommitdiff
path: root/examples/with-3rd-party
diff options
context:
space:
mode:
Diffstat (limited to 'examples/with-3rd-party')
-rw-r--r--examples/with-3rd-party/bootstrap.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/with-3rd-party/bootstrap.rs b/examples/with-3rd-party/bootstrap.rs
index 26386f5..5d2f713 100644
--- a/examples/with-3rd-party/bootstrap.rs
+++ b/examples/with-3rd-party/bootstrap.rs
@@ -15,7 +15,7 @@ pub fn bootstrap() -> Result<DIContainer, Box<dyn Error>>
di_container
.bind::<Shuriken>()
- .to_default_factory(&|_| Box::new(|| TransientPtr::new(Shuriken::new())))?;
+ .to_dynamic_value(&|_| Box::new(|| TransientPtr::new(Shuriken::new())))?;
Ok(di_container)
}