Formatted code

This commit is contained in:
Daniele Esposti 2019-03-08 22:19:59 +00:00 committed by David Peter
parent 82f14121bd
commit f259ff2920
4 changed files with 5 additions and 4 deletions

View File

@ -4,8 +4,8 @@ use std::str::FromStr;
use atty::{self, Stream};
use clap::ArgMatches;
use crate::clap_app;
use clap::ArgMatches;
use wild;
use console::Term;

View File

@ -1,6 +1,6 @@
use ansi_term::Style;
use crate::diff::LineChange;
use crate::printer::{Colors, InteractivePrinter};
use ansi_term::Style;
#[derive(Clone)]
pub struct DecorationText {

View File

@ -18,7 +18,9 @@ use encoding::{DecoderTrap, Encoding};
use crate::app::Config;
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::LineChanges;
use crate::errors::*;

View File

@ -9,7 +9,6 @@ impl SyntaxMapping {
Default::default()
}
pub fn insert(&mut self, from: impl Into<String>, to: impl Into<String>) -> Option<String> {
self.0.insert(from.into(), to.into())
}