diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/async-factory/main.rs | 3 | ||||
-rw-r--r-- | examples/async/bootstrap.rs | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/examples/async-factory/main.rs b/examples/async-factory/main.rs index a441842..f0365a1 100644 --- a/examples/async-factory/main.rs +++ b/examples/async-factory/main.rs @@ -5,10 +5,9 @@ use std::time::Duration; use anyhow::Result; -use syrette::di_container::asynchronous::prelude::*; use syrette::future::BoxFuture; use syrette::ptr::TransientPtr; -use syrette::{declare_default_factory, factory}; +use syrette::{declare_default_factory, factory, AsyncDIContainer}; use tokio::time::sleep; trait IFoo: Send + Sync diff --git a/examples/async/bootstrap.rs b/examples/async/bootstrap.rs index 5f90d88..9b495c2 100644 --- a/examples/async/bootstrap.rs +++ b/examples/async/bootstrap.rs @@ -1,9 +1,8 @@ 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; |