From 1c46b68581213ca8ae6200daa32f626b5389b4b0 Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 25 Aug 2022 20:21:49 +0200 Subject: refactor!: make DI container have single get function BREAKING CHANGE: The DI container get_singleton & get_factory functions have been replaced by the get function now returning a enum --- examples/with-3rd-party/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/with-3rd-party/main.rs') diff --git a/examples/with-3rd-party/main.rs b/examples/with-3rd-party/main.rs index dd4c21f..e48c78f 100644 --- a/examples/with-3rd-party/main.rs +++ b/examples/with-3rd-party/main.rs @@ -17,7 +17,7 @@ fn main() -> Result<(), Box> let di_container = bootstrap()?; - let ninja = di_container.get::()?; + let ninja = di_container.get::()?.transient()?; ninja.throw_shuriken(); -- cgit v1.2.3-18-g5258