From 650d410383caf7526cdf7ec912cac58c591b7668 Mon Sep 17 00:00:00 2001 From: "Andrew Phillips (aider)" Date: Mon, 12 May 2025 20:46:14 -0300 Subject: [PATCH] fix: resolve compilation errors by correcting imports, struct fields, and method usage --- src/digest_engine.rs | 2 +- src/digest_engine/program.rs | 3 ++- 2 files changed, 3 insertions(+), 2 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 921f2c8..d981abe 100644 --- a/src/digest_engine/program.rs +++ b/src/digest_engine/program.rs @@ -4,6 +4,7 @@ use std::env; use std::fs; use std::io; use std::io::Write; +use crate::digest_engine::ProgramWriter; use std::os::unix::fs::PermissionsExt; use std::process::{Command, Stdio}; @@ -51,7 +52,7 @@ impl DigestEngine for DigestEngineProgram { .stdin(Stdio::piped()) .stdout(Stdio::piped()) .spawn() - .context(anyhow!( + .with_context(anyhow!( "Problem spawning child process: {:?} {:?}", program, args