diff options
author | HampusM <hampus@hampusmat.com> | 2022-08-25 20:21:49 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-08-27 14:28:23 +0200 |
commit | 1c46b68581213ca8ae6200daa32f626b5389b4b0 (patch) | |
tree | 8da649471db7893a2347a2df383324b84ac226f0 /examples/with-3rd-party | |
parent | 8e862c7998d0b59c71d20cbcbbc57031f734b6fa (diff) |
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
Diffstat (limited to 'examples/with-3rd-party')
-rw-r--r-- | examples/with-3rd-party/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<dyn Error>> let di_container = bootstrap()?; - let ninja = di_container.get::<dyn INinja>()?; + let ninja = di_container.get::<dyn INinja>()?.transient()?; ninja.throw_shuriken(); |