diff options
author | HampusM <hampus@hampusmat.com> | 2022-10-23 18:12:23 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-10-23 18:12:23 +0200 |
commit | 9e01cdf341a7866180b3a63d745f3b2d7578d28a (patch) | |
tree | 0c036b7b4a68e44b6eb2221bf7beb3c34fe9c1c8 /examples/async/bootstrap.rs | |
parent | 740ef47d49e02ae2f2184f4c347d8eba8aee38fd (diff) |
refactor!: reduce DI container coupling
BREAKING CHANGE: You now have to import the DI containers's interfaces to use the DI containers's methods
Diffstat (limited to 'examples/async/bootstrap.rs')
-rw-r--r-- | examples/async/bootstrap.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/async/bootstrap.rs b/examples/async/bootstrap.rs index 9b495c2..5f90d88 100644 --- a/examples/async/bootstrap.rs +++ b/examples/async/bootstrap.rs @@ -1,8 +1,9 @@ use std::sync::Arc; use anyhow::Result; +use syrette::declare_default_factory; +use syrette::di_container::asynchronous::prelude::*; use syrette::ptr::TransientPtr; -use syrette::{declare_default_factory, AsyncDIContainer}; use crate::animals::cat::Cat; use crate::animals::dog::Dog; |