chore: Clippy fixes

This commit is contained in:
2025-05-18 12:53:36 -04:00
parent 2f5575d6ef
commit b72ca67302
2 changed files with 5 additions and 2 deletions

View File

@@ -90,7 +90,7 @@ impl ToTokens for Pipe {
if !_output.status.success() {
return Err(::comlexr::ExecutorError::FailedCommand{
command: #prev_com_ident,
command: std::boxed::Box::new(#prev_com_ident),
exit_code: _output.status.code().unwrap_or(1),
});
}

View File

@@ -24,7 +24,10 @@ pub enum ExecutorError {
.collect::<Vec<_>>()
.join(" "),
)]
FailedCommand { command: Command, exit_code: i32 },
FailedCommand {
command: Box<Command>,
exit_code: i32,
},
/// No stdin Error
#[error("Unable to get mutable stdin")]