From 8aeb7ad439b67228a0abc46b259967e8c91f8a97 Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 17 Aug 2023 22:04:17 +0200 Subject: docs: remove the 'unbound' example This was not at all a useful example --- examples/unbound/main.rs | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 examples/unbound/main.rs (limited to 'examples/unbound/main.rs') diff --git a/examples/unbound/main.rs b/examples/unbound/main.rs deleted file mode 100644 index 29fa0d4..0000000 --- a/examples/unbound/main.rs +++ /dev/null @@ -1,32 +0,0 @@ -#![deny(clippy::all)] -#![deny(clippy::pedantic)] -#![allow(clippy::module_name_repetitions)] - -mod animal_store; -mod animals; -mod bootstrap; -mod interfaces; - -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<()> -{ - println!("Hello, world!"); - - let di_container = bootstrap()?; - - let dog = di_container.get::()?.singleton()?; - - dog.woof(); - - let human = di_container.get::()?.transient()?; - - human.make_pets_make_sounds(); - - Ok(()) -} -- cgit v1.2.3-18-g5258