From 41b195c28cdb82854b8c97ecb8bf11c722da07cb Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 21 Jul 2022 20:17:03 +0200 Subject: refactor: re-export dependency of error_stack --- examples/basic/main.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'examples/basic/main.rs') diff --git a/examples/basic/main.rs b/examples/basic/main.rs index 956b79e..f96d963 100644 --- a/examples/basic/main.rs +++ b/examples/basic/main.rs @@ -2,8 +2,6 @@ #![deny(clippy::pedantic)] #![allow(clippy::module_name_repetitions)] -use syrette::errors::di_container::DIContainerError; - mod animals; mod bootstrap; mod interfaces; @@ -12,19 +10,17 @@ use bootstrap::bootstrap; use interfaces::dog::IDog; use interfaces::human::IHuman; -fn main() -> error_stack::Result<(), DIContainerError> +fn main() { println!("Hello, world!"); let di_container = bootstrap(); - let dog = di_container.get::()?; + let dog = di_container.get::().unwrap(); dog.woof(); - let human = di_container.get::()?; + let human = di_container.get::().unwrap(); human.make_pets_make_sounds(); - - Ok(()) } -- cgit v1.2.3-18-g5258