mirror of
https://github.com/sharkdp/bat
synced 2026-08-10 20:01:45 +00:00
Fix warnings, sort imports, input from string
This commit is contained in:
+3
-7
@@ -14,13 +14,9 @@ use clap::ArgMatches;
|
||||
use console::Term;
|
||||
|
||||
use bat::{
|
||||
config::{
|
||||
Config, HighlightedLineRanges, LineRange, LineRanges, MappingTarget, PagingMode,
|
||||
StyleComponent, StyleComponents, SyntaxMapping, WrappingMode,
|
||||
},
|
||||
errors::*,
|
||||
input::Input,
|
||||
HighlightingAssets,
|
||||
assets::HighlightingAssets, config::Config, errors::*, input::Input, HighlightedLineRanges,
|
||||
LineRange, LineRanges, MappingTarget, PagingMode, StyleComponent, StyleComponents,
|
||||
SyntaxMapping, WrappingMode,
|
||||
};
|
||||
|
||||
fn is_truecolor_terminal() -> bool {
|
||||
|
||||
@@ -5,8 +5,9 @@ use clap::crate_version;
|
||||
|
||||
use crate::directories::PROJECT_DIRS;
|
||||
|
||||
use bat::assets::HighlightingAssets;
|
||||
use bat::assets_metadata::AssetsMetadata;
|
||||
use bat::errors::*;
|
||||
use bat::{AssetsMetadata, HighlightingAssets};
|
||||
|
||||
pub fn config_dir() -> Cow<'static, str> {
|
||||
PROJECT_DIRS.config_dir().to_string_lossy()
|
||||
|
||||
+2
-4
@@ -26,10 +26,8 @@ use clap::crate_version;
|
||||
use directories::PROJECT_DIRS;
|
||||
|
||||
use bat::{
|
||||
config::{Config, StyleComponent, StyleComponents},
|
||||
errors::*,
|
||||
input::Input,
|
||||
Controller, HighlightingAssets,
|
||||
assets::HighlightingAssets, config::Config, controller::Controller, errors::*, input::Input,
|
||||
StyleComponent, StyleComponents,
|
||||
};
|
||||
|
||||
fn run_cache_subcommand(matches: &clap::ArgMatches) -> Result<()> {
|
||||
|
||||
Reference in New Issue
Block a user