aboutsummaryrefslogtreecommitdiff
path: root/mingling_macros
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-05-07 22:25:38 +0800
committer魏曹先生 <1992414357@qq.com>2026-05-07 22:25:38 +0800
commit3fd12ea50e0f7e041182658d35a9dc72abf86464 (patch)
tree30d214bea3e63af499eb9211607ad116bfa083c0 /mingling_macros
parent823e4ec91a85ea53066832ac25d4d18767e6b6d3 (diff)
Make the generated static dispatcher item public
Diffstat (limited to 'mingling_macros')
-rw-r--r--mingling_macros/src/dispatcher.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/mingling_macros/src/dispatcher.rs b/mingling_macros/src/dispatcher.rs
index f9dc423..915f5db 100644
--- a/mingling_macros/src/dispatcher.rs
+++ b/mingling_macros/src/dispatcher.rs
@@ -219,7 +219,7 @@ pub fn register_dispatcher(input: TokenStream) -> TokenStream {
let expanded = quote! {
#[doc(hidden)]
#[allow(nonstandard_style)]
- static #static_ident: #dispatcher_type = #dispatcher_type;
+ pub static #static_ident: #dispatcher_type = #dispatcher_type;
};
expanded.into()