open,common: Fix unused values and mut
This commit is contained in:
parent
8bb070811f
commit
2c4ac96893
2 changed files with 3 additions and 3 deletions
|
@ -20,13 +20,13 @@ pub fn run_bin(bin: Binary) -> BinaryResult {
|
|||
process::{Command, Stdio},
|
||||
};
|
||||
|
||||
let mut ret = Err("".to_string());
|
||||
let ret: BinaryResult;
|
||||
let mut iter = bin.iter();
|
||||
let mut cmd = Command::new(iter.next().unwrap());
|
||||
cmd.args(iter);
|
||||
|
||||
let mut child = cmd.stdout(Stdio::piped()).spawn().unwrap();
|
||||
let mut success = child.wait().unwrap().success();
|
||||
let success = child.wait().unwrap().success();
|
||||
|
||||
let mut s = String::from("");
|
||||
child.stdout.unwrap().read_to_string(&mut s).unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue