From d46181de1c19328ff8f3f6a12784cf14c53e9e71 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 15 Sep 2024 23:33:33 +0200 Subject: 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 --- examples/async/bootstrap.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/async') 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 .in_singleton_scope() .await?; - di_container.bind::().to_default_factory(&|_| { + di_container.bind::().to_dynamic_value(&|_| { Box::new(|| { let cat: TransientPtr = TransientPtr::new(Cat::new()); -- cgit v1.2.3-18-g5258