diff options
author | yuzu <yuzu@b9215c17-b818-4693-b096-d1e41a411fef> | 2025-05-29 06:24:25 +0000 |
---|---|---|
committer | yuzu <yuzu@b9215c17-b818-4693-b096-d1e41a411fef> | 2025-05-29 06:24:25 +0000 |
commit | 47e8793bf3dfb8d07a2d23c0f7ae25f4d369c314 (patch) | |
tree | bb5484057ac5d53a226bc74e12f1df082cfdd817 | |
parent | 4d3d9e0805bc5e252e2e44db1f6d67b72c5c7d76 (diff) | |
download | salaryman-47e8793bf3dfb8d07a2d23c0f7ae25f4d369c314.tar.gz salaryman-47e8793bf3dfb8d07a2d23c0f7ae25f4d369c314.tar.bz2 salaryman-47e8793bf3dfb8d07a2d23c0f7ae25f4d369c314.zip |
cargo fmt
git-svn-id: svn+ssh://diminuette.aengel.lesbianunix.dev/salaryman/trunk@3 b9215c17-b818-4693-b096-d1e41a411fef
-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) } |