aboutsummaryrefslogtreecommitdiff
path: root/examples/async
diff options
context:
space:
mode:
Diffstat (limited to 'examples/async')
-rw-r--r--examples/async/animals.rs (renamed from examples/async/animals/mod.rs)0
-rw-r--r--examples/async/bootstrap.rs2
-rw-r--r--examples/async/interfaces.rs (renamed from examples/async/interfaces/mod.rs)0
3 files changed, 1 insertions, 1 deletions
diff --git a/examples/async/animals/mod.rs b/examples/async/animals.rs
index 5444978..5444978 100644
--- a/examples/async/animals/mod.rs
+++ b/examples/async/animals.rs
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());
diff --git a/examples/async/interfaces/mod.rs b/examples/async/interfaces.rs
index ea0a26d..ea0a26d 100644
--- a/examples/async/interfaces/mod.rs
+++ b/examples/async/interfaces.rs