Clippy lints
This commit is contained in:
parent
cc683cbb04
commit
3b9ff6fd52
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -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)",
|
||||
|
@ -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),
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user