1
0
mirror of https://github.com/sharkdp/bat synced 2026-07-24 17:13:19 +00:00

Rename error module

This commit is contained in:
sharkdp
2020-04-22 21:45:47 +02:00
committed by David Peter
parent 5f826419d1
commit 702cb198da
16 changed files with 16 additions and 16 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ use console::Term;
use bat::{
assets::HighlightingAssets,
config::{Config, PagingMode},
errors::*,
error::*,
input::Input,
line_range::{HighlightedLineRanges, LineRange, LineRanges},
style::{StyleComponent, StyleComponents},
+1 -1
View File
@@ -7,7 +7,7 @@ use crate::directories::PROJECT_DIRS;
use bat::assets::HighlightingAssets;
use bat::assets_metadata::AssetsMetadata;
use bat::errors::*;
use bat::error::*;
pub fn config_dir() -> Cow<'static, str> {
PROJECT_DIRS.config_dir().to_string_lossy()
+1 -1
View File
@@ -14,7 +14,7 @@ pub fn config_file() -> PathBuf {
.unwrap_or_else(|| PROJECT_DIRS.config_dir().join("config"))
}
pub fn generate_config_file() -> bat::errors::Result<()> {
pub fn generate_config_file() -> bat::error::Result<()> {
let config_file = config_file();
if config_file.exists() {
println!(
+1 -1
View File
@@ -29,7 +29,7 @@ use bat::{
assets::HighlightingAssets,
config::Config,
controller::Controller,
errors::*,
error::*,
input::Input,
style::{StyleComponent, StyleComponents},
};