Fixed compilation errors

This commit is contained in:
LeRoyce Pearson 2016-07-19 18:57:49 +00:00
parent 182479d7af
commit b12dbcd75e

View file

@ -158,15 +158,15 @@ fn main() {
}, },
s => { s => {
let subcommand_args = &find_args(s)[..]; let mut subcommand_args = find_args(s);
if is_debug { if is_debug {
subcommand_args.push("--debug"); subcommand_args.push(String::from("--debug"));
} }
match Command::new(format!("imag-{}", s)) match Command::new(format!("imag-{}", s))
.stdin(Stdio::inherit()) .stdin(Stdio::inherit())
.stdout(Stdio::inherit()) .stdout(Stdio::inherit())
.stderr(Stdio::inherit()) .stderr(Stdio::inherit())
.args(subcommand_args) .args(&subcommand_args[..])
.spawn() .spawn()
.and_then(|mut handle| handle.wait()) .and_then(|mut handle| handle.wait())
{ {