aboutsummaryrefslogtreecommitdiff
path: root/examples/named
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-10-23 18:12:23 +0200
committerHampusM <hampus@hampusmat.com>2022-10-23 18:12:23 +0200
commit9e01cdf341a7866180b3a63d745f3b2d7578d28a (patch)
tree0c036b7b4a68e44b6eb2221bf7beb3c34fe9c1c8 /examples/named
parent740ef47d49e02ae2f2184f4c347d8eba8aee38fd (diff)
refactor!: reduce DI container coupling
BREAKING CHANGE: You now have to import the DI containers's interfaces to use the DI containers's methods
Diffstat (limited to 'examples/named')
-rw-r--r--examples/named/bootstrap.rs2
-rw-r--r--examples/named/main.rs1
2 files changed, 2 insertions, 1 deletions
diff --git a/examples/named/bootstrap.rs b/examples/named/bootstrap.rs
index 5f63b47..f7edc5d 100644
--- a/examples/named/bootstrap.rs
+++ b/examples/named/bootstrap.rs
@@ -1,7 +1,7 @@
use std::rc::Rc;
use anyhow::Result;
-use syrette::DIContainer;
+use syrette::di_container::blocking::prelude::*;
use crate::interfaces::ninja::INinja;
use crate::interfaces::weapon::IWeapon;
diff --git a/examples/named/main.rs b/examples/named/main.rs
index 5411a12..e7cccd0 100644
--- a/examples/named/main.rs
+++ b/examples/named/main.rs
@@ -9,6 +9,7 @@ mod ninja;
mod shuriken;
use anyhow::Result;
+use syrette::di_container::blocking::prelude::*;
use crate::bootstrap::bootstrap;
use crate::interfaces::ninja::INinja;