From 5ab5a470902ce7242adacc87de2e6e1998001d59 Mon Sep 17 00:00:00 2001 From: "Andrew Phillips (aider)" Date: Mon, 12 May 2025 20:48:44 -0300 Subject: [PATCH] fix: remove Clone derive and fix context method usage --- src/digest_engine.rs | 2 +- src/digest_engine/program.rs | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/digest_engine.rs b/src/digest_engine.rs index 047bdbb..53fb2e2 100644 --- a/src/digest_engine.rs +++ b/src/digest_engine.rs @@ -1,4 +1,4 @@ -use anyhow::{anyhow, Context, Result}; +use anyhow::{anyhow, Result}; use std::io; use lazy_static::lazy_static; diff --git a/src/digest_engine/program.rs b/src/digest_engine/program.rs index ed08098..1f35a63 100644 --- a/src/digest_engine/program.rs +++ b/src/digest_engine/program.rs @@ -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, pub supported: bool, - process: Option, } 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