diff options
author | LeRoyce Pearson <minergeemili@gmail.com> | 2016-07-19 18:57:49 +0000 |
---|---|---|
committer | LeRoyce Pearson <minergeemili@gmail.com> | 2016-07-19 18:57:49 +0000 |
commit | b12dbcd75ef233db08f1e8ff4e8a4a4253fbc02a (patch) | |
tree | a9fe8f470b781fa00fe0a85856d6ad2ed13c3645 /bin | |
parent | 182479d7affd5c596ba94ab008ae90d80a43cec2 (diff) |
Fixed compilation errors
Diffstat (limited to 'bin')
-rw-r--r-- | bin/src/main.rs | 6 |
1 files 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()) { |