Clippy lints

This commit is contained in:
Casey Rodarmor 2016-10-30 13:17:08 -07:00
parent cc683cbb04
commit 3b9ff6fd52
2 changed files with 3 additions and 4 deletions

2
Cargo.lock generated
View File

@ -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)",

View File

@ -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),
}
}