diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-03-20 22:21:56 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-03-20 22:21:56 +0800 |
| commit | ab6be7968b25afb57fc428695693484ad8576718 (patch) | |
| tree | e4af27964f195a18a678844dbe71c0aaa182b5dc /src/systems/cmd/macros.rs | |
| parent | 6b22f7b7694fce530f84ba94c65c057450cca626 (diff) | |
Refactor code to use modern Rust idioms and fix clippy lints
Diffstat (limited to 'src/systems/cmd/macros.rs')
| -rw-r--r-- | src/systems/cmd/macros.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/systems/cmd/macros.rs b/src/systems/cmd/macros.rs index 9e2446b..0502a26 100644 --- a/src/systems/cmd/macros.rs +++ b/src/systems/cmd/macros.rs @@ -149,7 +149,7 @@ macro_rules! command_template { input: In, collect: Collect, ) -> Result< - crate::systems::cmd::cmd_system::AnyOutput, + $crate::systems::cmd::cmd_system::AnyOutput, $crate::systems::cmd::errors::CmdExecuteError, > { exec(input, collect).await @@ -188,7 +188,7 @@ macro_rules! cmd_output { macro_rules! early_cmd_output { ($t:ty => $v:expr) => {{ let checked_value: $t = $v; - Err(crate::systems::cmd::errors::CmdPrepareError::EarlyOutput(( + Err($crate::systems::cmd::errors::CmdPrepareError::EarlyOutput(( Box::new(checked_value) as Box<dyn std::any::Any + Send + 'static>, std::any::TypeId::of::<$t>(), ))) |
