From 8c66b98bca6ed0a2990903fe8e0ea72def5c7be8 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 21 Aug 2022 14:19:07 +0200 Subject: refactor!: change errors to be more sane BREAKING CHANGE: Major improvements have been made to error types and the error_stack crate is no longer used --- examples/unbound/bootstrap.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'examples/unbound/bootstrap.rs') diff --git a/examples/unbound/bootstrap.rs b/examples/unbound/bootstrap.rs index 7835619..dc8468c 100644 --- a/examples/unbound/bootstrap.rs +++ b/examples/unbound/bootstrap.rs @@ -1,10 +1,12 @@ use syrette::DIContainer; // Concrete implementations +use crate::animal_store::AnimalStore; use crate::animals::dog::Dog; use crate::animals::human::Human; // // Interfaces +use crate::interfaces::animal_store::IAnimalStore; use crate::interfaces::dog::IDog; use crate::interfaces::human::IHuman; @@ -19,5 +21,10 @@ pub fn bootstrap() -> DIContainer di_container.bind::().to::().unwrap(); + di_container + .bind::() + .to::() + .unwrap(); + di_container } -- cgit v1.2.3-18-g5258