From e4a4e3e2b558d771537c7a4c0ba22f0d6b541b6e Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Thu, 21 May 2026 20:54:05 +0800 Subject: Update `modify_res` to return `Return` and rename internal method --- mingling_macros/src/chain.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mingling_macros/src') diff --git a/mingling_macros/src/chain.rs b/mingling_macros/src/chain.rs index 6e5fd64..60e44e9 100644 --- a/mingling_macros/src/chain.rs +++ b/mingling_macros/src/chain.rs @@ -236,7 +236,7 @@ fn generate_immut_resource_bindings<'a>( .collect() } -/// Wraps the function body in nested `__modify_res_and_return_any` closures for +/// Wraps the function body in nested `__modify_res_and_return_route` closures for /// each mutable resource parameter. The innermost closure gets the original body, /// and each mutable parameter wraps outward from last to first. fn wrap_body_with_mut_resources( @@ -252,7 +252,7 @@ fn wrap_body_with_mut_resources( let var_name = &res.var_name; let inner_type = &res.inner_type; wrapped = quote! { - ::mingling::this::<#program_type>().__modify_res_and_return_any(|#var_name: &mut #inner_type| { + ::mingling::this::<#program_type>().__modify_res_and_return_route(|#var_name: &mut #inner_type| { #wrapped }).into() }; -- cgit