From 4fd0d6b4951b08a20d5378bca75561109dc6d036 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 18 Sep 2023 22:35:58 +0200 Subject: refactor!: make the async DI container not inside a Arc BREAKING CHANGE: The async DI container is no longer inside of a Arc. This affects AsyncBindingBuilder, AsyncBindingScopeConfigurator, AsyncBindingWhenConfigurator & AsyncInjectable --- examples/async/bootstrap.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'examples/async/bootstrap.rs') diff --git a/examples/async/bootstrap.rs b/examples/async/bootstrap.rs index 9b495c2..d26876a 100644 --- a/examples/async/bootstrap.rs +++ b/examples/async/bootstrap.rs @@ -1,6 +1,3 @@ -use std::sync::Arc; - -use anyhow::Result; use syrette::ptr::TransientPtr; use syrette::{declare_default_factory, AsyncDIContainer}; @@ -15,7 +12,7 @@ use crate::interfaces::human::IHuman; declare_default_factory!(dyn ICat, threadsafe = true); -pub async fn bootstrap() -> Result> +pub async fn bootstrap() -> Result { let mut di_container = AsyncDIContainer::new(); -- cgit v1.2.3-18-g5258