Style changes

pull/187/merge
sharkdp 6 years ago committed by David Peter
parent 0ddd388a29
commit 6b57f4eebc

@ -126,7 +126,8 @@ impl<'a> Printer<'a> {
// Line decorations. // Line decorations.
if self.panel_width > 0 { if self.panel_width > 0 {
let decorations = self.decorations let decorations = self
.decorations
.iter() .iter()
.map(|ref d| d.generate(self.line_number, false, self)) .map(|ref d| d.generate(self.line_number, false, self))
.collect::<Vec<_>>(); .collect::<Vec<_>>();
@ -213,11 +214,9 @@ impl<'a> Printer<'a> {
"{} ", "{} ",
self.decorations self.decorations
.iter() .iter()
.map(|ref d| d.generate( .map(|ref d| d
self.line_number, .generate(self.line_number, true, self)
true, .text)
self
).text)
.collect::<Vec<String>>() .collect::<Vec<String>>()
.join(" ") .join(" ")
)) ))

Loading…
Cancel
Save