diff options
| author | 魏曹先生 <1992414357@qq.com> | 2025-10-27 17:20:01 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2025-10-27 17:20:01 +0800 |
| commit | 45cee7d8def7738d3347b201d3c54c0055817a4c (patch) | |
| tree | f88398a297c8eb4b8a5e582165bde1d29f6d2403 /crates/system_action/action_macros/src | |
| parent | 3d638844da6b540b1e70e25e6f7c49307b240078 (diff) | |
fix: Make the ActionContext passed to on_proc_begin mutable
Diffstat (limited to 'crates/system_action/action_macros/src')
| -rw-r--r-- | crates/system_action/action_macros/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/system_action/action_macros/src/lib.rs b/crates/system_action/action_macros/src/lib.rs index ce50073..7362cdf 100644 --- a/crates/system_action/action_macros/src/lib.rs +++ b/crates/system_action/action_macros/src/lib.rs @@ -64,7 +64,7 @@ fn generate_action_struct(input_fn: ItemFn, _is_local: bool) -> proc_macro2::Tok #fn_vis async fn #proc_this_action( pool: &action_system::action_pool::ActionPool, - ctx: action_system::action::ActionContext, + mut ctx: action_system::action::ActionContext, #arg_param_name: #arg_type ) -> Result<#return_type, tcp_connection::error::TcpTargetError> { let args_json = serde_json::to_string(&#arg_param_name) |
