on master help sign in
Add 'dyn' keyword for trait references
commit63d652dab5e82fb56ea3a347ade98ed93251a1a4 authorsharkdp <davidpeter@web.de> dateSat 31 Aug 2019, 12:24 (7 years ago) parent7f2e61d
1 file changed+2−2
src/printer.rs+2−2
src/printer.rs+2−2
@@ -61,7 +61,7 @@ impl Printer for SimplePrinter {
6161 Ok(())
6262 }
6363
64− fn print_snip(&mut self, _handle: &mut Write) -> Result<()> {
64+ fn print_snip(&mut self, _handle: &mut dyn Write) -> Result<()> {
6565 Ok(())
6666 }
6767
@@ -296,7 +296,7 @@ impl<'a> Printer for InteractivePrinter<'a> {
296296 }
297297 }
298298
299− fn print_snip(&mut self, handle: &mut Write) -> Result<()> {
299+ fn print_snip(&mut self, handle: &mut dyn Write) -> Result<()> {
300300 let panel = self.create_fake_panel(" ...");
301301 let panel_count = panel.chars().count();
302302