mirror of
https://github.com/sharkdp/bat.git
synced 2025-02-22 04:48:48 +00:00
Formatted code
This commit is contained in:
parent
82f14121bd
commit
f259ff2920
@ -4,8 +4,8 @@ use std::str::FromStr;
|
|||||||
|
|
||||||
use atty::{self, Stream};
|
use atty::{self, Stream};
|
||||||
|
|
||||||
use clap::ArgMatches;
|
|
||||||
use crate::clap_app;
|
use crate::clap_app;
|
||||||
|
use clap::ArgMatches;
|
||||||
use wild;
|
use wild;
|
||||||
|
|
||||||
use console::Term;
|
use console::Term;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
use ansi_term::Style;
|
|
||||||
use crate::diff::LineChange;
|
use crate::diff::LineChange;
|
||||||
use crate::printer::{Colors, InteractivePrinter};
|
use crate::printer::{Colors, InteractivePrinter};
|
||||||
|
use ansi_term::Style;
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub struct DecorationText {
|
pub struct DecorationText {
|
||||||
|
@ -18,7 +18,9 @@ use encoding::{DecoderTrap, Encoding};
|
|||||||
|
|
||||||
use crate::app::Config;
|
use crate::app::Config;
|
||||||
use crate::assets::HighlightingAssets;
|
use crate::assets::HighlightingAssets;
|
||||||
use crate::decorations::{Decoration, GridBorderDecoration, LineChangesDecoration, LineNumberDecoration};
|
use crate::decorations::{
|
||||||
|
Decoration, GridBorderDecoration, LineChangesDecoration, LineNumberDecoration,
|
||||||
|
};
|
||||||
use crate::diff::get_git_diff;
|
use crate::diff::get_git_diff;
|
||||||
use crate::diff::LineChanges;
|
use crate::diff::LineChanges;
|
||||||
use crate::errors::*;
|
use crate::errors::*;
|
||||||
|
@ -9,7 +9,6 @@ impl SyntaxMapping {
|
|||||||
Default::default()
|
Default::default()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
pub fn insert(&mut self, from: impl Into<String>, to: impl Into<String>) -> Option<String> {
|
pub fn insert(&mut self, from: impl Into<String>, to: impl Into<String>) -> Option<String> {
|
||||||
self.0.insert(from.into(), to.into())
|
self.0.insert(from.into(), to.into())
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user