aboutsummaryrefslogtreecommitdiff
path: root/examples/unbound/main.rs
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/unbound/main.rs
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/unbound/main.rs')
-rw-r--r--examples/unbound/main.rs11
1 files changed, 6 insertions, 5 deletions
diff --git a/examples/unbound/main.rs b/examples/unbound/main.rs
index f8dddbb..29fa0d4 100644
--- a/examples/unbound/main.rs
+++ b/examples/unbound/main.rs
@@ -2,16 +2,17 @@
#![deny(clippy::pedantic)]
#![allow(clippy::module_name_repetitions)]
-use anyhow::Result;
-
mod animal_store;
mod animals;
mod bootstrap;
mod interfaces;
-use bootstrap::bootstrap;
-use interfaces::dog::IDog;
-use interfaces::human::IHuman;
+use anyhow::Result;
+use syrette::di_container::blocking::prelude::*;
+
+use crate::bootstrap::bootstrap;
+use crate::interfaces::dog::IDog;
+use crate::interfaces::human::IHuman;
fn main() -> Result<()>
{