From eebcdf6b163174ec1629d121264c0477652e3323 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 10 Aug 2026 16:04:57 +0800 Subject: refactor(macros): clean up clippy lints and simplify code --- mingling_macros/src/func/pack_structural.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mingling_macros/src/func/pack_structural.rs') diff --git a/mingling_macros/src/func/pack_structural.rs b/mingling_macros/src/func/pack_structural.rs index 9399959..e5b2362 100644 --- a/mingling_macros/src/func/pack_structural.rs +++ b/mingling_macros/src/func/pack_structural.rs @@ -6,6 +6,7 @@ use crate::get_global_set; /// `pack_structural!` — like `pack!` but also marks the type as supporting /// structured output via `StructuralData`. +#[allow(clippy::too_many_lines)] pub(crate) fn pack_structural(input: TokenStream) -> TokenStream { // Parse same input format as `pack!` let input_parsed = syn::parse_macro_input!(input as PackStructuralInput); @@ -159,7 +160,7 @@ impl syn::parse::Parse for PackStructuralInput { let type_name: Ident = input.parse()?; input.parse::()?; let inner_type: syn::Type = input.parse()?; - Ok(PackStructuralInput { + Ok(Self { attrs, type_name, inner_type, -- cgit