From 93612c50a57d55d0abb56071a8cf604a1458ae2f Mon Sep 17 00:00:00 2001 From: Weicao-CatilGrass <1992414357@qq.com> Date: Sat, 23 May 2026 21:41:46 +0800 Subject: Fix incorrect variable name in help attribute macro --- mingling_macros/src/help.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mingling_macros') diff --git a/mingling_macros/src/help.rs b/mingling_macros/src/help.rs index 341f340..2721bf5 100644 --- a/mingling_macros/src/help.rs +++ b/mingling_macros/src/help.rs @@ -128,7 +128,7 @@ pub fn help_attr(item: TokenStream) -> TokenStream { } // Call the wrapper function - help_wrapper(#prev_param, r); + help_wrapper(#prev_param, __renderer_inner_result); } } @@ -154,7 +154,7 @@ fn build_help_entry(struct_name: &Ident, entry_type: &TypePath) -> proc_macro2:: // SAFETY: The member_id check ensures that `any` contains a value of type `#entry_type`, // so downcasting to `#entry_type` is safe. let value = unsafe { any.downcast::<#entry_type>().unwrap_unchecked() }; - <#struct_name as ::mingling::HelpRequest>::render_help(value, r); + <#struct_name as ::mingling::HelpRequest>::render_help(value, __renderer_inner_result); } } } -- cgit