From b12dbcd75ef233db08f1e8ff4e8a4a4253fbc02a Mon Sep 17 00:00:00 2001 From: LeRoyce Pearson Date: Tue, 19 Jul 2016 18:57:49 +0000 Subject: [PATCH] Fixed compilation errors --- bin/src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/src/main.rs b/bin/src/main.rs index ea046be1..17fdd21e 100644 --- a/bin/src/main.rs +++ b/bin/src/main.rs @@ -158,15 +158,15 @@ fn main() { }, s => { - let subcommand_args = &find_args(s)[..]; + let mut subcommand_args = find_args(s); if is_debug { - subcommand_args.push("--debug"); + subcommand_args.push(String::from("--debug")); } match Command::new(format!("imag-{}", s)) .stdin(Stdio::inherit()) .stdout(Stdio::inherit()) .stderr(Stdio::inherit()) - .args(subcommand_args) + .args(&subcommand_args[..]) .spawn() .and_then(|mut handle| handle.wait()) {