diff options
| author | mo8it <mo8it@proton.me> | 2025-05-16 10:50:07 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2025-05-16 11:09:06 +0200 |
| commit | 8dff0df2667d3c6f1812bdb390c708709b762847 (patch) | |
| tree | a8bc6084e9980e65bcdc6a6fe39efd8ec08b046d /src/cmd.rs | |
| parent | 5ee7dfb5c22ab0ac9037c86bc9320c944010038b (diff) | |
Use std pipe
Diffstat (limited to 'src/cmd.rs')
| -rw-r--r-- | src/cmd.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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}``") })?; |
