diff --git a/cli/src/error.rs b/cli/src/error.rs index e4160817..e84e84fe 100644 --- a/cli/src/error.rs +++ b/cli/src/error.rs @@ -25,8 +25,7 @@ impl Error { } pub fn new(message: String) -> Self { - let e = Error(Some(vec![message])); - e + Error(Some(vec![message])) } pub fn new_ignored() -> Self { diff --git a/cli/src/main.rs b/cli/src/main.rs index 7c2774fe..0454772c 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -14,7 +14,7 @@ const BUILD_VERSION: &'static str = env!("CARGO_PKG_VERSION"); const BUILD_SHA: Option<&'static str> = option_env!("BUILD_SHA"); fn main() { - if let Err(ref e) = run() { + if let Err(e) = run() { if e.is_ignored() { exit(0); }