summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2025-05-16 10:50:07 +0200
committermo8it <mo8it@proton.me>2025-05-16 11:09:06 +0200
commit8dff0df2667d3c6f1812bdb390c708709b762847 (patch)
treea8bc6084e9980e65bcdc6a6fe39efd8ec08b046d /src
parent5ee7dfb5c22ab0ac9037c86bc9320c944010038b (diff)
Use std pipe
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}``")
})?;