From c1e682c25c24be3174d44ceb95b0537c38299d0c Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 12 Sep 2022 20:22:13 +0200 Subject: feat!: allow factories access to DI container BREAKING CHANGE: Factory types should now be written with the Fn trait instead of the IFactory trait and the to_factory & to_default_factory methods of BindingBuilder now expect a function returning a factory function --- examples/generics/bootstrap.rs | 3 --- 1 file changed, 3 deletions(-) (limited to 'examples/generics') diff --git a/examples/generics/bootstrap.rs b/examples/generics/bootstrap.rs index 752a39b..98d03db 100644 --- a/examples/generics/bootstrap.rs +++ b/examples/generics/bootstrap.rs @@ -2,10 +2,7 @@ use std::rc::Rc; use syrette::{di_container_bind, DIContainer}; -// Interfaces use crate::interfaces::printer::IPrinter; -// -// Implementations use crate::printer::Printer; pub fn bootstrap() -> Rc -- cgit v1.2.3-18-g5258