diff --git a/src/librustdoc/html/highlight.rs b/src/librustdoc/html/highlight.rs index 8a7aa3c13a9..73d7a9ab859 100644 --- a/src/librustdoc/html/highlight.rs +++ b/src/librustdoc/html/highlight.rs @@ -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, "
\n", class.unwrap_or(""))
 }