From 5541e6674b44836bb940266b3b6c9963e3235600 Mon Sep 17 00:00:00 2001 From: Maciej Dziardziel Date: Thu, 3 Apr 2014 22:37:14 +0100 Subject: [PATCH] pass params directly to show_error macro --- kill/kill.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kill/kill.rs b/kill/kill.rs index f44f0b285..52ada4413 100644 --- a/kill/kill.rs +++ b/kill/kill.rs @@ -74,8 +74,7 @@ fn main() { let matches = match getopts(args.tail(), opts) { Ok(m) => m, Err(e) => { - let msg = format!("{}\n{}", e.to_err_msg(), get_help_text(NAME, usage)); - show_error!(EXIT_ERR, "{}", msg); + show_error!(EXIT_ERR, "{}\n{}", e.to_err_msg(), get_help_text(NAME, usage)); return }, };