diff --git a/src/librustdoc/html/markdown.rs b/src/librustdoc/html/markdown.rs index 1c6926775908a..aca20331f0aa3 100644 --- a/src/librustdoc/html/markdown.rs +++ b/src/librustdoc/html/markdown.rs @@ -38,7 +38,6 @@ use std::vec; use collections::HashMap; use html::highlight; -use html::escape::Escape; /// A unit struct which has the `fmt::Show` trait implemented. When /// 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 { // Render the HTML let text = format!(r#"{}"#, - Escape(s.as_slice()), lvl = level, id = id); + s, lvl = level, id = id); text.with_c_str(|p| unsafe { bufputs(ob, p) }); }