From 63d652dab5e82fb56ea3a347ade98ed93251a1a4 Mon Sep 17 00:00:00 2001 From: sharkdp Date: Sat, 31 Aug 2019 12:24:29 +0200 Subject: [PATCH] Add 'dyn' keyword for trait references --- src/printer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/printer.rs b/src/printer.rs index e2a031a7..d8fdcc8b 100644 --- a/src/printer.rs +++ b/src/printer.rs @@ -61,7 +61,7 @@ impl Printer for SimplePrinter { Ok(()) } - fn print_snip(&mut self, _handle: &mut Write) -> Result<()> { + fn print_snip(&mut self, _handle: &mut dyn Write) -> Result<()> { Ok(()) } @@ -296,7 +296,7 @@ impl<'a> Printer for InteractivePrinter<'a> { } } - fn print_snip(&mut self, handle: &mut Write) -> Result<()> { + fn print_snip(&mut self, handle: &mut dyn Write) -> Result<()> { let panel = self.create_fake_panel(" ..."); let panel_count = panel.chars().count();