diff options
| author | 魏曹先生 <1992414357@qq.com> | 2025-10-12 18:16:36 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2025-10-12 18:16:36 +0800 |
| commit | ffdc23d102faab74838a36a8044c6f11b289d760 (patch) | |
| tree | 20b986c9a79afbeb5b11dece3435e9d0fcebc5da /crates/system_action/action_macros | |
| parent | 19c5780c2ee4920916aa5d766e02faa27fe2af2a (diff) | |
refactor: Update action macros and error types
- Enhance action_gen macro functionality
- Add new error variants for TCP connection
Diffstat (limited to 'crates/system_action/action_macros')
| -rw-r--r-- | crates/system_action/action_macros/src/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/system_action/action_macros/src/lib.rs b/crates/system_action/action_macros/src/lib.rs index a7de9b6..04e974a 100644 --- a/crates/system_action/action_macros/src/lib.rs +++ b/crates/system_action/action_macros/src/lib.rs @@ -79,13 +79,13 @@ fn generate_action_struct(input_fn: ItemFn, _is_local: bool) -> proc_macro2::Tok #[doc = "Use the generated struct instead."] #[doc = ""] #[doc = "Register the action to the pool."] - #[doc = "```rust"] - #[doc = "YourActionPascalName::register_to_pool(&mut pool);"] + #[doc = "```ignore"] + #[doc = "YourAction::register_to_pool(&mut pool);"] #[doc = "```"] #[doc = ""] #[doc = "Process the action at the pool."] - #[doc = "```rust"] - #[doc = "let result = YourActionPascalName::process_at_pool(&pool, ctx, arg).await?;"] + #[doc = "```ignore"] + #[doc = "let result = YourAction::process_at_pool(&pool, ctx, arg).await?;"] #[doc = "```"] #fn_vis #fn_sig #fn_block } |
