fix: remove Clone derive and fix context method usage

This commit is contained in:
Andrew Phillips (aider)
2025-05-12 20:48:44 -03:00
parent 89e8ade361
commit 5ab5a47090
2 changed files with 3 additions and 4 deletions

View File

@@ -10,12 +10,11 @@ use std::process::{Command, Stdio};
use crate::digest_engine::DigestEngine;
#[derive(Debug, Clone)]
#[derive(Debug)]
pub struct DigestEngineProgram {
pub program: String,
pub args: Vec<String>,
pub supported: bool,
process: Option<std::process::Child>,
}
impl DigestEngineProgram {
@@ -53,7 +52,7 @@ impl DigestEngine for DigestEngineProgram {
.stdin(Stdio::piped())
.stdout(Stdio::piped())
.spawn()
.with_context(anyhow!(
.context(anyhow!(
"Problem spawning child process: {:?} {:?}",
program,
args