1
0
mirror of https://github.com/sharkdp/bat synced 2026-08-10 20:01:45 +00:00

Fix all compile errors in bin/bat

* Change `mod errors` in lib.rs to public

* Add `fn handle_error` in lib.rs errors module
This commit is contained in:
Fahmi Akbar Wildana
2019-10-06 09:10:03 +07:00
committed by David Peter
parent e981bd88c1
commit 23d80f9e84
7 changed files with 64 additions and 72 deletions
+10 -8
View File
@@ -13,14 +13,16 @@ use console::Term;
#[cfg(windows)]
use ansi_term;
use crate::assets::BAT_THEME_DEFAULT;
use crate::config::{get_args_from_config_file, get_args_from_env_var};
use crate::errors::*;
use crate::inputfile::InputFile;
use crate::line_range::{LineRange, LineRanges};
use crate::style::{OutputComponent, OutputComponents, OutputWrap};
use crate::syntax_mapping::SyntaxMapping;
use crate::util::transpose;
use bat::{
assets::BAT_THEME_DEFAULT,
config::{get_args_from_config_file, get_args_from_env_var},
errors::*,
inputfile::InputFile,
line_range::{LineRange, LineRanges},
style::{OutputComponent, OutputComponents, OutputWrap},
syntax_mapping::SyntaxMapping,
util::transpose,
};
#[derive(Debug, Clone, Copy, PartialEq)]
pub enum PagingMode {