aboutsummaryrefslogtreecommitdiff
path: root/examples/with-3rd-party
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-09-15 23:33:33 +0200
committerHampusM <hampus@hampusmat.com>2024-09-15 23:33:33 +0200
commitd46181de1c19328ff8f3f6a12784cf14c53e9e71 (patch)
tree863bdd4e90ea2d9be66c3164222611cff2aca04a /examples/with-3rd-party
parenta34f7c03779aaf90f34b5ff59587daf1db42de8d (diff)
refactor!: rename to_*default_factory functions to to_*dynamic_value
BREAKING CHANGE: The functions to_default_factory and to_async_default_factory have been renamed to to_dynamic_value and to_async_dynamic_value, respectively
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)
}