aboutsummaryrefslogtreecommitdiff
path: root/mingling_macros/src/chain.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-05-21 20:54:05 +0800
committer魏曹先生 <1992414357@qq.com>2026-05-21 20:54:05 +0800
commite4a4e3e2b558d771537c7a4c0ba22f0d6b541b6e (patch)
treed942e66c44cd1bf3da4ec36c508f22458a41eab3 /mingling_macros/src/chain.rs
parent021f134a3b87674be3567583c2dd04e763075f37 (diff)
Update `modify_res` to return `Return` and rename internal method
Diffstat (limited to 'mingling_macros/src/chain.rs')
-rw-r--r--mingling_macros/src/chain.rs4
1 files changed, 2 insertions, 2 deletions
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()
};