From a5ce659b9cfc25a3bd509cbd8045e0180e92c86d Mon Sep 17 00:00:00 2001 From: philipp Date: Fri, 12 Jul 2019 21:55:32 +0200 Subject: [PATCH] Avoid closure --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 1b1f992..a935965 100644 --- a/src/main.rs +++ b/src/main.rs @@ -222,6 +222,6 @@ fn build_commands<'a>(matches: &'a ArgMatches<'_>) -> Vec> { Err(e) => error(e.description()), } } else { - command_strings.map(|c| Command::new(c)).collect() + command_strings.map(Command::new).collect() } }