diff options
author | Daniele Esposti <daniele.esposti@gmail.com> | 2019-03-08 22:19:59 +0000 |
---|---|---|
committer | David Peter <sharkdp@users.noreply.github.com> | 2019-03-09 07:43:41 +0100 |
commit | f259ff2920f5238f6939016965fe5f900d6a42fe (patch) | |
tree | 0a8e7010a9b999b210623d541f20285f15ab70a5 | |
parent | 82f14121bd70432080820c245e67c0eb3113f2c5 (diff) |
Formatted code
-rw-r--r-- | src/app.rs | 2 | ||||
-rw-r--r-- | src/decorations.rs | 2 | ||||
-rw-r--r-- | src/printer.rs | 4 | ||||
-rw-r--r-- | src/syntax_mapping.rs | 1 |
4 files changed, 5 insertions, 4 deletions
@@ -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; diff --git a/src/decorations.rs b/src/decorations.rs index 8b146751..7654c617 100644 --- a/src/decorations.rs +++ b/src/decorations.rs @@ -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 { diff --git a/src/printer.rs b/src/printer.rs index 692e5702..aab944d1 100644 --- a/src/printer.rs +++ b/src/printer.rs @@ -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::*; diff --git a/src/syntax_mapping.rs b/src/syntax_mapping.rs index bfd29f00..3126ac9c 100644 --- a/src/syntax_mapping.rs +++ b/src/syntax_mapping.rs @@ -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()) } |