mirror of
https://github.com/sharkdp/bat
synced 2026-07-24 17:13:19 +00:00
Rename error module
This commit is contained in:
+1
-1
@@ -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},
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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
@@ -29,7 +29,7 @@ use bat::{
|
||||
assets::HighlightingAssets,
|
||||
config::Config,
|
||||
controller::Controller,
|
||||
errors::*,
|
||||
error::*,
|
||||
input::Input,
|
||||
style::{StyleComponent, StyleComponents},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user