We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 987de29 + 9f6bced commit bd47f67Copy full SHA for bd47f67
src/librustdoc/html/markdown.rs
@@ -38,7 +38,6 @@ use std::vec;
38
use collections::HashMap;
39
40
use html::highlight;
41
-use html::escape::Escape;
42
43
/// A unit struct which has the `fmt::Show` trait implemented. When
44
/// formatted, this struct will emit the HTML corresponding to the rendered
@@ -198,7 +197,7 @@ pub fn render(w: &mut io::Writer, s: &str) -> fmt::Result {
198
197
199
// Render the HTML
200
let text = format!(r#"<h{lvl} id="{id}">{}</h{lvl}>"#,
201
- Escape(s.as_slice()), lvl = level, id = id);
+ s, lvl = level, id = id);
202
text.with_c_str(|p| unsafe { bufputs(ob, p) });
203
}
204
0 commit comments