diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index c4ed431..21d527a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,8 +1,12 @@ -use std::process::{Command, Stdio, Child}; use std::io::Read; +use std::process::{Child, Command, Stdio}; fn exec(image: &str, args: Vec<&str>) -> Result<Child, Box<dyn std::error::Error>> { - let child = Command::new(image).args(args).stdin(Stdio::piped()).stdout(Stdio::piped()).spawn()?; + let child = Command::new(image) + .args(args) + .stdin(Stdio::piped()) + .stdout(Stdio::piped()) + .spawn()?; Ok(child) } |