diff options
| author | 魏曹先生 <1992414357@qq.com> | 2025-10-06 04:25:31 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2025-10-06 04:25:31 +0800 |
| commit | a54a0349d286ef7e3532382cc21c60fa9e380b28 (patch) | |
| tree | 38345a177e308ee788abad3b4ead5fb10a5ceecd | |
| parent | 85f7c35d6c573b715c166fe7501225ecab6731ea (diff) | |
Fix macro expansion type errors in action_system macros
- Update macro-generated code to use correct action_system crate name
- Replace vcs_service references with action_system in generated implementations
- Ensure Action trait implementations reference the correct module path
- Fix ActionContext type references in generated process methods
| -rw-r--r-- | crates/system_action/action_macros/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/system_action/action_macros/src/lib.rs b/crates/system_action/action_macros/src/lib.rs index 2c2e4a8..1bc18f7 100644 --- a/crates/system_action/action_macros/src/lib.rs +++ b/crates/system_action/action_macros/src/lib.rs @@ -40,7 +40,7 @@ fn generate_action_struct(input_fn: ItemFn, _is_local: bool) -> proc_macro2::Tok #[derive(Debug, Clone, Default)] #fn_vis struct #struct_name; - impl vcs_service::action::Action<#arg_type, #return_type> for #struct_name { + impl action_system::action::Action<#arg_type, #return_type> for #struct_name { fn action_name() -> &'static str { Box::leak(string_proc::snake_case!(stringify!(#action_name_ident)).into_boxed_str()) } @@ -49,7 +49,7 @@ fn generate_action_struct(input_fn: ItemFn, _is_local: bool) -> proc_macro2::Tok !#_is_local } - async fn process(context: vcs_service::action::ActionContext, args: #arg_type) -> Result<#return_type, tcp_connection::error::TcpTargetError> { + async fn process(context: action_system::action::ActionContext, args: #arg_type) -> Result<#return_type, tcp_connection::error::TcpTargetError> { #fn_block } } |
