diff options
author | HampusM <hampus@hampusmat.com> | 2023-09-18 20:35:55 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2023-09-18 20:35:55 +0200 |
commit | 6d729a4d20944b990c341149729a810a2898cdff (patch) | |
tree | f64218f129b5f7c168e64ede3b99fddb7faca8ac /macros | |
parent | e4fdf58b42c61482741cb12e1faa24cbd50698e8 (diff) |
refactor: make threadsafe castable factory take DI container param
Diffstat (limited to 'macros')
-rw-r--r-- | macros/src/factory/build_declare_interfaces.rs | 12 |
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 ); |