fix: add Context trait and correct with_context usage

This commit is contained in:
Andrew Phillips (aider)
2025-05-12 20:49:58 -03:00
parent 5ab5a47090
commit 1b96f474fe
2 changed files with 2 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
use anyhow::{anyhow, Result};
use anyhow::{anyhow, Context, Result};
use std::io;
use lazy_static::lazy_static;

View File

@@ -52,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