diff options
| author | Weicao-CatilGrass <1992414357@qq.com> | 2026-05-31 02:42:52 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-05-31 17:19:20 +0800 |
| commit | 2aa7bda3cb21ce6c052b82e08bcab79a625d04f2 (patch) | |
| tree | f10b89007fc67ca1a948f34abe6869b49296b932 /mingling_macros/src/res_injection.rs | |
| parent | 3aa409a55e4f2f0ab41b0949cc06eb13c2da4a43 (diff) | |
Enhance code quality across the entire codebase
Diffstat (limited to 'mingling_macros/src/res_injection.rs')
| -rw-r--r-- | mingling_macros/src/res_injection.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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<ResourceInjection>)> { @@ -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! { |
