aboutsummaryrefslogtreecommitdiff
path: root/examples/async
diff options
context:
space:
mode:
Diffstat (limited to 'examples/async')
-rw-r--r--examples/async/bootstrap.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/async/bootstrap.rs b/examples/async/bootstrap.rs
index 07e1bf8..5abeac7 100644
--- a/examples/async/bootstrap.rs
+++ b/examples/async/bootstrap.rs
@@ -20,7 +20,7 @@ pub async fn bootstrap() -> Result<AsyncDIContainer, anyhow::Error>
.in_singleton_scope()
.await?;
- di_container.bind::<dyn ICat>().to_default_factory(&|_| {
+ di_container.bind::<dyn ICat>().to_dynamic_value(&|_| {
Box::new(|| {
let cat: TransientPtr<dyn ICat> = TransientPtr::new(Cat::new());