From 48c08f036319fe576db813d28075b2c851a5d27d Mon Sep 17 00:00:00 2001 From: Ruben Schmidmeister Date: Sun, 9 Jun 2019 09:40:51 +0200 Subject: [PATCH] Enforce rust 2018 idioms --- src/formatter/mod.rs | 4 ++-- src/formatter/style.rs | 4 ++-- src/lib.rs | 2 ++ src/stylesheets/no_color.rs | 4 ++-- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/formatter/mod.rs b/src/formatter/mod.rs index 45fee74..189c90d 100644 --- a/src/formatter/mod.rs +++ b/src/formatter/mod.rs @@ -47,7 +47,7 @@ fn repeat_char(c: char, n: usize) -> String { /// assert_eq!(dlf.format(&dl), "192 | Example line of text"); /// ``` pub struct DisplayListFormatter { - stylesheet: Box, + stylesheet: Box, } impl DisplayListFormatter { @@ -101,7 +101,7 @@ impl DisplayListFormatter { } } - fn get_annotation_style(&self, annotation_type: &DisplayAnnotationType) -> Box