@@ -4,9 +4,6 @@
44#[macro_use]
55extern crate error_chain;
66
7−#[macro_use]
8−extern crate clap;
9−
107#[macro_use]
118extern crate lazy_static;
129
@@ -21,17 +18,17 @@ extern crate shell_words;
2118extern crate syntect;
2219extern crate wild;
2320
24−mod assets;
25−mod config;
26−mod diff;
27−mod dirs;
28−mod inputfile;
29−mod line_range;
30−mod preprocessor;
31−mod style;
32−mod syntax_mapping;
33−mod terminal;
34−mod util;
21+pub mod assets;
22+pub mod config;
23+pub mod diff;
24+pub mod dirs;
25+pub mod inputfile;
26+pub mod line_range;
27+pub mod preprocessor;
28+pub mod style;
29+pub mod syntax_mapping;
30+pub mod terminal;
31+pub mod util;
3532
3633mod errors {
3734 error_chain! {
@@ -42,18 +39,4 @@ mod errors {
4239 ParseIntError(::std::num::ParseIntError);
4340 }
4441 }
45−
46− pub fn handle_error(error: &Error) {
47− match error {
48− Error(ErrorKind::Io(ref io_error), _)
49− if io_error.kind() == ::std::io::ErrorKind::BrokenPipe =>
50− {
51− ::std::process::exit(0);
52− }
53− _ => {
54− use ansi_term::Colour::Red;
55− eprintln!("{}: {}", Red.paint("[bat error]"), error);
56− }
57− };
58− }
5942}