summaryrefslogtreecommitdiffstats
path: root/src/paint.rs
diff options
context:
space:
mode:
authorJason Shirk <jasonsh@microsoft.com>2019-10-13 10:22:09 -0700
committerJason Shirk <jasonsh@microsoft.com>2019-10-13 10:22:09 -0700
commit049da5faaa8a6242f0c989859cb4cfb2823dadd8 (patch)
treecbc0c0c1c58f273fdf60a41936f637bc858ec8a4 /src/paint.rs
parent3280e66def4d41d7c8cb503c4e59a4eacd71268e (diff)
Add dyn to suppress warning
Diffstat (limited to 'src/paint.rs')
-rw-r--r--src/paint.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/paint.rs b/src/paint.rs
index 543eef95..bd7dd354 100644
--- a/src/paint.rs
+++ b/src/paint.rs
@@ -14,7 +14,7 @@ use crate::style;
pub struct Painter<'a> {
pub minus_lines: Vec<String>,
pub plus_lines: Vec<String>,
- pub writer: &'a mut Write,
+ pub writer: &'a mut dyn Write,
pub syntax: Option<&'a SyntaxReference>,
pub highlighter: HighlightLines<'a>,
pub config: &'a config::Config<'a>,
@@ -23,7 +23,7 @@ pub struct Painter<'a> {
impl<'a> Painter<'a> {
pub fn new(
- writer: &'a mut Write,
+ writer: &'a mut dyn Write,
config: &'a config::Config,
assets: &'a HighlightingAssets,
) -> Self {