From 75ca777bbeb618e14b1cf8854ebb37b7a2c884b5 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 16 Sep 2023 16:04:47 +0200 Subject: refactor: make castable factory take DI container param --- macros/src/factory/build_declare_interfaces.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'macros/src') diff --git a/macros/src/factory/build_declare_interfaces.rs b/macros/src/factory/build_declare_interfaces.rs index e4fc01b..38dd35d 100644 --- a/macros/src/factory/build_declare_interfaces.rs +++ b/macros/src/factory/build_declare_interfaces.rs @@ -33,18 +33,18 @@ pub fn build_declare_factory_interfaces( quote! { syrette::declare_interface!( syrette::private::castable_factory::blocking::CastableFactory< - (std::rc::Rc,), - #factory_interface + #factory_interface, + syrette::di_container::blocking::DIContainer > -> syrette::private::factory::IFactory< - (std::rc::Rc,), - #factory_interface + #factory_interface, + syrette::di_container::blocking::DIContainer > ); syrette::declare_interface!( syrette::private::castable_factory::blocking::CastableFactory< - (std::rc::Rc,), - #factory_interface + #factory_interface, + syrette::di_container::blocking::DIContainer > -> syrette::private::any_factory::AnyFactory ); } -- cgit v1.2.3-18-g5258