From 6b57f4eebc7f1182cc7aceddfc8a3e23e80337ac Mon Sep 17 00:00:00 2001 From: sharkdp Date: Tue, 17 Jul 2018 23:38:45 +0200 Subject: [PATCH] Style changes --- src/printer.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/printer.rs b/src/printer.rs index 9fb4ac0a..b7e0eb53 100644 --- a/src/printer.rs +++ b/src/printer.rs @@ -126,7 +126,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::>(); @@ -213,11 +214,9 @@ impl<'a> Printer<'a> { "{} ", self.decorations .iter() - .map(|ref d| d.generate( - self.line_number, - true, - self - ).text) + .map(|ref d| d + .generate(self.line_number, true, self) + .text) .collect::>() .join(" ") ))