mirror of
				https://github.com/sharkdp/bat.git
				synced 2025-10-31 15:12:12 +00:00 
			
		
		
		
	Fix code formatting
This commit is contained in:
		| @@ -1,4 +1,3 @@ | |||||||
| use Colors; |  | ||||||
| use app::Config; | use app::Config; | ||||||
| use console::AnsiCodeIterator; | use console::AnsiCodeIterator; | ||||||
| use decorations::{Decoration, GridBorderDecoration, LineChangesDecoration, LineNumberDecoration}; | use decorations::{Decoration, GridBorderDecoration, LineChangesDecoration, LineNumberDecoration}; | ||||||
| @@ -10,6 +9,7 @@ use std::vec::Vec; | |||||||
| use style::OutputWrap; | use style::OutputWrap; | ||||||
| use syntect::highlighting; | use syntect::highlighting; | ||||||
| use terminal::as_terminal_escaped; | use terminal::as_terminal_escaped; | ||||||
|  | use Colors; | ||||||
|  |  | ||||||
| pub struct Printer<'a> { | pub struct Printer<'a> { | ||||||
|     handle: &'a mut Write, |     handle: &'a mut Write, | ||||||
| @@ -119,7 +119,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<_>>(); | ||||||
| @@ -194,7 +195,8 @@ impl<'a> Printer<'a> { | |||||||
|                                             "{} ", |                                             "{} ", | ||||||
|                                             self.decorations |                                             self.decorations | ||||||
|                                                 .iter() |                                                 .iter() | ||||||
|                                                 .map(|ref d| d.generate(self.line_number, true, self) |                                                 .map(|ref d| d | ||||||
|  |                                                     .generate(self.line_number, true, self) | ||||||
|                                                     .text) |                                                     .text) | ||||||
|                                                 .collect::<Vec<String>>() |                                                 .collect::<Vec<String>>() | ||||||
|                                                 .join(" ") |                                                 .join(" ") | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user