aboutsummaryrefslogtreecommitdiff
path: root/macros/src/factory
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2023-09-16 16:04:47 +0200
committerHampusM <hampus@hampusmat.com>2023-09-16 16:04:47 +0200
commit75ca777bbeb618e14b1cf8854ebb37b7a2c884b5 (patch)
treea03e6346b0a9b6a584edf5e4feca826f12a35d17 /macros/src/factory
parent31f7949ab380bcd0a0b754588e7d50284d2f5ae7 (diff)
refactor: make castable factory take DI container param
Diffstat (limited to 'macros/src/factory')
-rw-r--r--macros/src/factory/build_declare_interfaces.rs12
1 files changed, 6 insertions, 6 deletions
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<syrette::DIContainer>,),
- #factory_interface
+ #factory_interface,
+ syrette::di_container::blocking::DIContainer
> -> syrette::private::factory::IFactory<
- (std::rc::Rc<syrette::DIContainer>,),
- #factory_interface
+ #factory_interface,
+ syrette::di_container::blocking::DIContainer
>
);
syrette::declare_interface!(
syrette::private::castable_factory::blocking::CastableFactory<
- (std::rc::Rc<syrette::DIContainer>,),
- #factory_interface
+ #factory_interface,
+ syrette::di_container::blocking::DIContainer
> -> syrette::private::any_factory::AnyFactory
);
}