@@ -9,7 +9,7 @@ use crate::{
99 config::{Config, VisibleLines},
1010 controller::Controller,
1111 error::Result,
12− input::Input as BatInput,
12+ input,
1313 line_range::{HighlightedLineRanges, LineRange, LineRanges},
1414 style::{StyleComponent, StyleComponents},
1515 SyntaxMapping, WrappingMode,
@@ -312,18 +312,18 @@ impl<'a> PrettyPrinter<'a> {
312312
313313/// An input source for the pretty printer.
314314pub struct Input<'a> {
315− input: BatInput<'a>,
315+ input: input::Input<'a>,
316316}
317317
318318impl<'a> Input<'a> {
319319 /// A new input from a reader.
320320 pub fn from_reader<R: Read + 'a>(reader: R) -> Self {
321− BatInput::from_reader(Box::new(reader)).into()
321+ input::Input::from_reader(Box::new(reader)).into()
322322 }
323323
324324 /// A new input from a file.
325325 pub fn from_file(path: impl AsRef<OsStr>) -> Self {
326− BatInput::ordinary_file(path.as_ref()).into()
326+ input::Input::ordinary_file(path.as_ref()).into()
327327 }
328328
329329 /// A new input from bytes.
@@ -333,7 +333,7 @@ impl<'a> Input<'a> {
333333
334334 /// A new input from STDIN.
335335 pub fn from_stdin() -> Self {
336− BatInput::stdin().into()
336+ input::Input::stdin().into()
337337 }
338338
339339 /// The filename of the input.
@@ -360,14 +360,14 @@ impl<'a> Input<'a> {
360360 }
361361}
362362
363−impl<'a> Into<Input<'a>> for BatInput<'a> {
363+impl<'a> Into<Input<'a>> for input::Input<'a> {
364364 fn into(self) -> Input<'a> {
365365 Input { input: self }
366366 }
367367}
368368
369−impl<'a> Into<BatInput<'a>> for Input<'a> {
370− fn into(self) -> BatInput<'a> {
369+impl<'a> Into<input::Input<'a>> for Input<'a> {
370+ fn into(self) -> input::Input<'a> {
371371 self.input
372372 }
373373}