From 5e3b17e6f7041537ce670d75aab130962b39a755 Mon Sep 17 00:00:00 2001 From: sharkdp Date: Fri, 18 May 2018 16:40:49 +0200 Subject: [PATCH] Fix code formatting --- src/printer.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/printer.rs b/src/printer.rs index c1762548..7eed2653 100644 --- a/src/printer.rs +++ b/src/printer.rs @@ -1,4 +1,3 @@ -use Colors; use app::Config; use console::AnsiCodeIterator; use decorations::{Decoration, GridBorderDecoration, LineChangesDecoration, LineNumberDecoration}; @@ -10,6 +9,7 @@ use std::vec::Vec; use style::OutputWrap; use syntect::highlighting; use terminal::as_terminal_escaped; +use Colors; pub struct Printer<'a> { handle: &'a mut Write, @@ -119,7 +119,8 @@ impl<'a> Printer<'a> { // Line decorations. if self.panel_width > 0 { - let decorations = self.decorations + let decorations = self + .decorations .iter() .map(|ref d| d.generate(self.line_number, false, self)) .collect::>(); @@ -194,7 +195,8 @@ impl<'a> Printer<'a> { "{} ", self.decorations .iter() - .map(|ref d| d.generate(self.line_number, true, self) + .map(|ref d| d + .generate(self.line_number, true, self) .text) .collect::>() .join(" ")