Skip to content

Commit 4cd0047

Browse files
Add dyn to Write
1 parent 8e65a46 commit 4cd0047

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/highlight.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ impl Class {
370370
}
371371
}
372372

373-
fn write_header(class: Option<&str>, out: &mut Write) -> io::Result<()> {
373+
fn write_header(class: Option<&str>, out: &mut dyn Write) -> io::Result<()> {
374374
write!(out, "<pre class=\"rust {}\">\n", class.unwrap_or(""))
375375
}
376376

0 commit comments

Comments
 (0)