aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWeicao-CatilGrass <1992414357@qq.com>2026-05-23 21:41:46 +0800
committerWeicao-CatilGrass <1992414357@qq.com>2026-05-23 21:41:46 +0800
commit93612c50a57d55d0abb56071a8cf604a1458ae2f (patch)
tree621a1c194e318160ea5d531ccb3dbed729a0fd3d
parent47c96bb31b2398d28bf50406f79e2713030d2d4c (diff)
Fix incorrect variable name in help attribute macro
-rw-r--r--mingling_macros/src/help.rs4
1 files changed, 2 insertions, 2 deletions
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);
}
}
}