@@ -30,12 +30,12 @@ use crate::style::OutputWrap;
3030use crate::terminal::{as_terminal_escaped, to_ansi_color};
3131
3232pub trait Printer {
33− fn print_header(&mut self, handle: &mut Write, file: InputFile) -> Result<()>;
34− fn print_footer(&mut self, handle: &mut Write) -> Result<()>;
33+ fn print_header(&mut self, handle: &mut dyn Write, file: InputFile) -> Result<()>;
34+ fn print_footer(&mut self, handle: &mut dyn Write) -> Result<()>;
3535 fn print_line(
3636 &mut self,
3737 out_of_range: bool,
38− handle: &mut Write,
38+ handle: &mut dyn Write,
3939 line_number: usize,
4040 line_buffer: &[u8],
4141 ) -> Result<()>;
@@ -50,18 +50,18 @@ impl SimplePrinter {
5050}
5151
5252impl Printer for SimplePrinter {
53− fn print_header(&mut self, _handle: &mut Write, _file: InputFile) -> Result<()> {
53+ fn print_header(&mut self, _handle: &mut dyn Write, _file: InputFile) -> Result<()> {
5454 Ok(())
5555 }
5656
57− fn print_footer(&mut self, _handle: &mut Write) -> Result<()> {
57+ fn print_footer(&mut self, _handle: &mut dyn Write) -> Result<()> {
5858 Ok(())
5959 }
6060
6161 fn print_line(
6262 &mut self,
6363 out_of_range: bool,
64− handle: &mut Write,
64+ handle: &mut dyn Write,
6565 _line_number: usize,
6666 line_buffer: &[u8],
6767 ) -> Result<()> {
@@ -166,7 +166,7 @@ impl<'a> InteractivePrinter<'a> {
166166 }
167167 }
168168
169− fn print_horizontal_line(&mut self, handle: &mut Write, grid_char: char) -> Result<()> {
169+ fn print_horizontal_line(&mut self, handle: &mut dyn Write, grid_char: char) -> Result<()> {
170170 if self.panel_width == 0 {
171171 writeln!(
172172 handle,
@@ -192,7 +192,7 @@ impl<'a> InteractivePrinter<'a> {
192192}
193193
194194impl<'a> Printer for InteractivePrinter<'a> {
195− fn print_header(&mut self, handle: &mut Write, file: InputFile) -> Result<()> {
195+ fn print_header(&mut self, handle: &mut dyn Write, file: InputFile) -> Result<()> {
196196 if !self.config.output_components.header() {
197197 if Some(ContentType::BINARY) == self.content_type {
198198 let input = match file {
@@ -262,7 +262,7 @@ impl<'a> Printer for InteractivePrinter<'a> {
262262 Ok(())
263263 }
264264
265− fn print_footer(&mut self, handle: &mut Write) -> Result<()> {
265+ fn print_footer(&mut self, handle: &mut dyn Write) -> Result<()> {
266266 if self.config.output_components.grid() && self.content_type.map_or(false, |c| c.is_text())
267267 {
268268 self.print_horizontal_line(handle, '┴')
@@ -274,7 +274,7 @@ impl<'a> Printer for InteractivePrinter<'a> {
274274 fn print_line(
275275 &mut self,
276276 out_of_range: bool,
277− handle: &mut Write,
277+ handle: &mut dyn Write,
278278 line_number: usize,
279279 line_buffer: &[u8],
280280 ) -> Result<()> {