From 2aa7bda3cb21ce6c052b82e08bcab79a625d04f2 Mon Sep 17 00:00:00 2001 From: Weicao-CatilGrass <1992414357@qq.com> Date: Sun, 31 May 2026 02:42:52 +0800 Subject: Enhance code quality across the entire codebase --- mingling_macros/src/res_injection.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mingling_macros/src/res_injection.rs') diff --git a/mingling_macros/src/res_injection.rs b/mingling_macros/src/res_injection.rs index bdb3b73..f2280e3 100644 --- a/mingling_macros/src/res_injection.rs +++ b/mingling_macros/src/res_injection.rs @@ -13,6 +13,7 @@ pub(crate) struct ResourceInjection { /// Extracts the previous type and parameter name from function arguments, /// and collects resource injection parameters from the 2nd argument onward. +#[allow(clippy::too_many_lines)] pub(crate) fn extract_args_info( sig: &Signature, ) -> syn::Result<(Pat, TypePath, Vec)> { @@ -183,7 +184,7 @@ pub(crate) fn wrap_body_with_mut_resources( #(#fn_body_stmts)* }; - for res in mut_resources.iter() { + for res in mut_resources { let var_name = &res.var_name; let inner_type = &res.inner_type; wrapped = quote! { -- cgit