From 87f021078ec4ae266b6f69862644ac59e7cba8f7 Mon Sep 17 00:00:00 2001 From: sharkdp Date: Sun, 7 Oct 2018 11:55:39 +0200 Subject: [PATCH] Use dyn Trait for trait objects --- src/printer.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/printer.rs b/src/printer.rs index 8959c81f..527aff0b 100644 --- a/src/printer.rs +++ b/src/printer.rs @@ -1,4 +1,3 @@ -use std::boxed::Box; use std::io::Write; use std::vec::Vec; @@ -67,7 +66,7 @@ impl Printer for SimplePrinter { pub struct InteractivePrinter<'a> { colors: Colors, config: &'a Config<'a>, - decorations: Vec>, + decorations: Vec>, panel_width: usize, ansi_prefix_sgr: String, pub line_changes: Option, @@ -85,7 +84,7 @@ impl<'a> InteractivePrinter<'a> { }; // Create decorations. - let mut decorations: Vec> = Vec::new(); + let mut decorations: Vec> = Vec::new(); if config.output_components.numbers() { decorations.push(Box::new(LineNumberDecoration::new(&colors)));