Clippy lints
This commit is contained in:
parent
cc683cbb04
commit
3b9ff6fd52
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -1,6 +1,6 @@
|
|||||||
[root]
|
[root]
|
||||||
name = "j"
|
name = "j"
|
||||||
version = "0.2.7"
|
version = "0.2.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"brev 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
|
"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)",
|
"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::{io, fs, env, process};
|
||||||
use std::collections::BTreeMap;
|
use std::collections::BTreeMap;
|
||||||
use self::clap::{App, Arg};
|
use self::clap::{App, Arg};
|
||||||
use super::Slurp;
|
use super::{Slurp, RunError};
|
||||||
|
|
||||||
macro_rules! warn {
|
macro_rules! warn {
|
||||||
($($arg:tt)*) => {{
|
($($arg:tt)*) => {{
|
||||||
@ -166,8 +166,7 @@ pub fn app() {
|
|||||||
if let Err(run_error) = justfile.run(&overrides, &arguments, dry_run, evaluate) {
|
if let Err(run_error) = justfile.run(&overrides, &arguments, dry_run, evaluate) {
|
||||||
warn!("{}", run_error);
|
warn!("{}", run_error);
|
||||||
match run_error {
|
match run_error {
|
||||||
super::RunError::Code{code, .. } => process::exit(code),
|
RunError::Code{code, .. } | RunError::BacktickCode{code, ..} => process::exit(code),
|
||||||
super::RunError::BacktickCode{code, ..} => process::exit(code),
|
|
||||||
_ => process::exit(-1),
|
_ => process::exit(-1),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user