From 3b9ff6fd52b3997e63259d13f55fb6075a979ea7 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Sun, 30 Oct 2016 13:17:08 -0700 Subject: [PATCH] Clippy lints --- Cargo.lock | 2 +- src/app.rs | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e8e1e15..517608e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,6 @@ [root] name = "j" -version = "0.2.7" +version = "0.2.8" dependencies = [ "brev 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", "clap 2.16.3 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/src/app.rs b/src/app.rs index 0af4865..9a1f873 100644 --- a/src/app.rs +++ b/src/app.rs @@ -4,7 +4,7 @@ extern crate regex; use std::{io, fs, env, process}; use std::collections::BTreeMap; use self::clap::{App, Arg}; -use super::Slurp; +use super::{Slurp, RunError}; macro_rules! warn { ($($arg:tt)*) => {{ @@ -166,8 +166,7 @@ pub fn app() { if let Err(run_error) = justfile.run(&overrides, &arguments, dry_run, evaluate) { warn!("{}", run_error); match run_error { - super::RunError::Code{code, .. } => process::exit(code), - super::RunError::BacktickCode{code, ..} => process::exit(code), + RunError::Code{code, .. } | RunError::BacktickCode{code, ..} => process::exit(code), _ => process::exit(-1), } }