Run `cargo fmt`

This commit is contained in:
Fahmi Akbar Wildana 2019-10-09 11:38:09 +07:00 committed by David Peter
parent e542621125
commit 0273848f54
3 changed files with 3 additions and 3 deletions

View File

@ -1,13 +1,13 @@
use std::io::{self, Write};
use std::path::Path;
use crate::{Config, PagingMode};
use crate::assets::HighlightingAssets;
use crate::errors::*;
use crate::inputfile::{InputFile, InputFileReader};
use crate::line_range::{LineRanges, RangeCheckResult};
use crate::output::OutputType;
use crate::printer::{InteractivePrinter, Printer, SimplePrinter};
use crate::{Config, PagingMode};
pub struct Controller<'a> {
config: &'a Config<'a>,

View File

@ -6,8 +6,8 @@ use std::process::{Child, Command, Stdio};
use shell_words;
use crate::PagingMode;
use crate::errors::*;
use crate::PagingMode;
pub enum OutputType {
Pager(Child),

View File

@ -16,7 +16,6 @@ use content_inspector::ContentType;
use encoding::all::{UTF_16BE, UTF_16LE};
use encoding::{DecoderTrap, Encoding};
use crate::Config;
use crate::assets::HighlightingAssets;
use crate::decorations::{
Decoration, GridBorderDecoration, LineChangesDecoration, LineNumberDecoration,
@ -28,6 +27,7 @@ use crate::inputfile::{InputFile, InputFileReader};
use crate::preprocessor::{expand_tabs, replace_nonprintable};
use crate::style::OutputWrap;
use crate::terminal::{as_terminal_escaped, to_ansi_color};
use crate::Config;
pub trait Printer {
fn print_header(&mut self, handle: &mut dyn Write, file: InputFile) -> Result<()>;