1
0
mirror of https://github.com/sharkdp/bat synced 2026-08-09 19:51:48 +00:00

Rename InputFile => Input

This commit is contained in:
sharkdp
2020-04-21 21:19:06 +02:00
committed by David Peter
parent 1dc328ad49
commit f8d0956893
9 changed files with 82 additions and 84 deletions
+4 -4
View File
@@ -2,7 +2,7 @@ use std::ffi::OsStr;
use crate::{
config::{
Config, HighlightedLineRanges, InputFile, LineRanges, OrdinaryFile, StyleComponents,
Config, HighlightedLineRanges, Input, LineRanges, OrdinaryFile, StyleComponents,
SyntaxMapping, WrappingMode,
},
errors::Result,
@@ -13,7 +13,7 @@ use crate::{
use crate::config::PagingMode;
pub struct PrettyPrinter<'a> {
inputs: Vec<InputFile>,
inputs: Vec<Input>,
config: Config<'a>,
assets: HighlightingAssets,
}
@@ -35,7 +35,7 @@ impl<'a> PrettyPrinter<'a> {
/// Add a file which should be pretty-printed
pub fn file(&mut self, path: &OsStr) -> &mut Self {
self.inputs
.push(InputFile::Ordinary(OrdinaryFile::from_path(path)));
.push(Input::Ordinary(OrdinaryFile::from_path(path)));
self
}
@@ -47,7 +47,7 @@ impl<'a> PrettyPrinter<'a> {
{
for path in paths {
self.inputs
.push(InputFile::Ordinary(OrdinaryFile::from_path(path.as_ref())));
.push(Input::Ordinary(OrdinaryFile::from_path(path.as_ref())));
}
self
}