From 2d0aae4b2d595ced100f7a2ec8d13b872a5eb65e Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 10 Aug 2026 16:19:45 +0800 Subject: refactor: simplify macro parsing code and fix clippy warnings --- mingling_macros/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mingling_macros/src/lib.rs') diff --git a/mingling_macros/src/lib.rs b/mingling_macros/src/lib.rs index c87584d..6ae8693 100644 --- a/mingling_macros/src/lib.rs +++ b/mingling_macros/src/lib.rs @@ -438,7 +438,7 @@ pub fn pack_structural(input: TokenStream) -> TokenStream { /// This macro provides a concise way to define error types that implement `Grouped` /// and are registered for inclusion in the program enum. /// -/// The `name` field is automatically set to the snake_case version of the struct name +/// The `name` field is automatically set to the `snake_case` version of the struct name /// at compile time. /// /// # Syntax @@ -1101,7 +1101,7 @@ pub fn completion(attr: TokenStream, item: TokenStream) -> TokenStream { #[cfg(feature = "extras")] #[proc_macro_attribute] pub fn program_setup(attr: TokenStream, item: TokenStream) -> TokenStream { - program_setup::setup_attr(attr, item) + program_setup::setup_attr(&attr, item) } /// Declares a command from a plain function. -- cgit