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