mirror of
				https://github.com/sharkdp/bat.git
				synced 2025-11-04 09:01:56 +00:00 
			
		
		
		
	Fix code formatting
This commit is contained in:
		@@ -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::<Vec<_>>();
 | 
			
		||||
@@ -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::<Vec<String>>()
 | 
			
		||||
                                                .join(" ")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user