summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cmd.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd.rs b/src/cmd.rs
index 551df8f..b2c58f6 100644
--- a/src/cmd.rs
+++ b/src/cmd.rs
@@ -1,7 +1,7 @@
use anyhow::{Context, Result, bail};
use serde::Deserialize;
use std::{
- io::Read,
+ io::{Read, pipe},
path::PathBuf,
process::{Command, Stdio},
};
@@ -17,7 +17,7 @@ fn run_cmd(mut cmd: Command, description: &str, output: Option<&mut Vec<u8>>) ->
};
let mut handle = if let Some(output) = output {
- let (mut reader, writer) = os_pipe::pipe().with_context(|| {
+ let (mut reader, writer) = pipe().with_context(|| {
format!("Failed to create a pipe to run the command `{description}``")
})?;