aboutsummaryrefslogtreecommitdiff
path: root/macros
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2023-09-18 20:35:55 +0200
committerHampusM <hampus@hampusmat.com>2023-09-18 20:35:55 +0200
commit6d729a4d20944b990c341149729a810a2898cdff (patch)
treef64218f129b5f7c168e64ede3b99fddb7faca8ac /macros
parente4fdf58b42c61482741cb12e1faa24cbd50698e8 (diff)
refactor: make threadsafe castable factory take DI container param
Diffstat (limited to 'macros')
-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 f256c7b..1e2d62e 100644
--- a/macros/src/factory/build_declare_interfaces.rs
+++ b/macros/src/factory/build_declare_interfaces.rs
@@ -12,19 +12,19 @@ pub fn build_declare_factory_interfaces(
quote! {
syrette::declare_interface!(
syrette::private::castable_factory::threadsafe::ThreadsafeCastableFactory<
- (std::sync::Arc<syrette::AsyncDIContainer>,),
- #factory_interface
+ #factory_interface,
+ syrette::di_container::asynchronous::AsyncDIContainer,
> -> syrette::private::factory::IThreadsafeFactory<
- (std::sync::Arc<syrette::AsyncDIContainer>,),
- #factory_interface
+ #factory_interface,
+ syrette::di_container::asynchronous::AsyncDIContainer,
>,
threadsafe_sharable = true
);
syrette::declare_interface!(
syrette::private::castable_factory::threadsafe::ThreadsafeCastableFactory<
- (std::sync::Arc<syrette::AsyncDIContainer>,),
- #factory_interface
+ #factory_interface,
+ syrette::di_container::asynchronous::AsyncDIContainer,
> -> syrette::private::any_factory::AnyThreadsafeFactory,
threadsafe_sharable = true
);