Add dyn to Write

This commit is contained in:
Mark Rousskov 2018-07-28 18:15:52 -06:00
parent 8e65a46268
commit 4cd004775c

View File

@ -370,7 +370,7 @@ impl Class {
}
}
fn write_header(class: Option<&str>, out: &mut Write) -> io::Result<()> {
fn write_header(class: Option<&str>, out: &mut dyn Write) -> io::Result<()> {
write!(out, "<pre class=\"rust {}\">\n", class.unwrap_or(""))
}