From 7702cac8fca20503f02e9e55a08b64e19c3d39ee Mon Sep 17 00:00:00 2001 From: geemili Date: Tue, 19 Jul 2016 14:25:09 -0500 Subject: [PATCH] Fixed compile errors --- bin/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/src/main.rs b/bin/src/main.rs index 37f343f5..5fb212d4 100644 --- a/bin/src/main.rs +++ b/bin/src/main.rs @@ -159,7 +159,7 @@ fn main() { s => { let mut subcommand_args = find_args(s); - if is_debug && subcommand_args.filter(|x| x == "debug").count() == 0 { + if is_debug && subcommand_args.iter().find(|x| *x == "debug").is_none() { subcommand_args.push(String::from("--debug")); } match Command::new(format!("imag-{}", s))