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/basic/bootstrap.rs | 2 +- examples/basic/main.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/basic') diff --git a/examples/basic/bootstrap.rs b/examples/basic/bootstrap.rs index 2c45676..1cad500 100644 --- a/examples/basic/bootstrap.rs +++ b/examples/basic/bootstrap.rs @@ -1,7 +1,7 @@ use std::error::Error; use std::rc::Rc; -use syrette::DIContainer; +use syrette::di_container::blocking::prelude::*; use crate::animals::cat::Cat; use crate::animals::dog::Dog; diff --git a/examples/basic/main.rs b/examples/basic/main.rs index dbc9215..7b129e9 100644 --- a/examples/basic/main.rs +++ b/examples/basic/main.rs @@ -11,6 +11,7 @@ mod interfaces; use bootstrap::bootstrap; use interfaces::dog::IDog; use interfaces::human::IHuman; +use syrette::di_container::blocking::prelude::*; fn main() -> Result<(), Box> { -- cgit v1.2.3-18-g5258