From 9bed6b4d2772fd020ea9eb6eaaba4ca014d96f94 Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 14 Sep 2023 19:41:56 +0200 Subject: refactor!: remove blocking DI container interface BREAKING CHANGE: IDIContainer have been removed and multiple structs no longer take a DI container generic parameter --- examples/basic/main.rs | 1 - examples/factory/main.rs | 2 -- examples/generics/main.rs | 2 -- examples/named/main.rs | 1 - examples/with-3rd-party/main.rs | 2 -- 5 files changed, 8 deletions(-) (limited to 'examples') diff --git a/examples/basic/main.rs b/examples/basic/main.rs index 7b129e9..dbc9215 100644 --- a/examples/basic/main.rs +++ b/examples/basic/main.rs @@ -11,7 +11,6 @@ mod interfaces; use bootstrap::bootstrap; use interfaces::dog::IDog; use interfaces::human::IHuman; -use syrette::di_container::blocking::prelude::*; fn main() -> Result<(), Box> { diff --git a/examples/factory/main.rs b/examples/factory/main.rs index d428717..2c18829 100644 --- a/examples/factory/main.rs +++ b/examples/factory/main.rs @@ -9,8 +9,6 @@ mod user_manager; use std::error::Error; -use syrette::di_container::blocking::prelude::*; - use crate::bootstrap::bootstrap; use crate::interfaces::user_manager::IUserManager; diff --git a/examples/generics/main.rs b/examples/generics/main.rs index 7910cad..e54b168 100644 --- a/examples/generics/main.rs +++ b/examples/generics/main.rs @@ -4,8 +4,6 @@ mod printer; use std::error::Error; -use syrette::di_container::blocking::prelude::*; - use crate::bootstrap::bootstrap; use crate::interfaces::printer::IPrinter; diff --git a/examples/named/main.rs b/examples/named/main.rs index e7cccd0..5411a12 100644 --- a/examples/named/main.rs +++ b/examples/named/main.rs @@ -9,7 +9,6 @@ mod ninja; mod shuriken; use anyhow::Result; -use syrette::di_container::blocking::prelude::*; use crate::bootstrap::bootstrap; use crate::interfaces::ninja::INinja; diff --git a/examples/with-3rd-party/main.rs b/examples/with-3rd-party/main.rs index 520038e..e9f8c89 100644 --- a/examples/with-3rd-party/main.rs +++ b/examples/with-3rd-party/main.rs @@ -8,8 +8,6 @@ mod ninja; use std::error::Error; -use syrette::di_container::blocking::prelude::*; - use crate::bootstrap::bootstrap; use crate::interfaces::ninja::INinja; -- cgit v1.2.3-18-g5258