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/with-3rd-party/main.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'examples/with-3rd-party/main.rs') diff --git a/examples/with-3rd-party/main.rs b/examples/with-3rd-party/main.rs index e48c78f..520038e 100644 --- a/examples/with-3rd-party/main.rs +++ b/examples/with-3rd-party/main.rs @@ -2,12 +2,14 @@ #![deny(clippy::pedantic)] #![allow(clippy::module_name_repetitions)] -use std::error::Error; - mod bootstrap; mod interfaces; 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