From 3fd12ea50e0f7e041182658d35a9dc72abf86464 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Thu, 7 May 2026 22:25:38 +0800 Subject: Make the generated static dispatcher item public --- mingling_macros/src/dispatcher.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mingling_macros') 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() -- cgit