From 9e01cdf341a7866180b3a63d745f3b2d7578d28a Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 23 Oct 2022 18:12:23 +0200 Subject: refactor!: reduce DI container coupling BREAKING CHANGE: You now have to import the DI containers's interfaces to use the DI containers's methods --- examples/async-factory/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/async-factory') diff --git a/examples/async-factory/main.rs b/examples/async-factory/main.rs index 715abf5..b9beded 100644 --- a/examples/async-factory/main.rs +++ b/examples/async-factory/main.rs @@ -5,8 +5,9 @@ use std::time::Duration; use anyhow::Result; +use syrette::di_container::asynchronous::prelude::*; use syrette::ptr::TransientPtr; -use syrette::{async_closure, declare_default_factory, factory, AsyncDIContainer}; +use syrette::{async_closure, declare_default_factory, factory}; use tokio::time::sleep; trait IFoo: Send + Sync -- cgit v1.2.3-18-g5258