1
Fork 0

Cleanup highlighting code

Removes some unused code and de-publicizes structs
This commit is contained in:
Mark Rousskov 2018-07-22 14:10:10 -06:00
parent 7bea518d3a
commit 8e65a46268
3 changed files with 23 additions and 42 deletions

View file

@ -2239,7 +2239,6 @@ fn render_assoc_const_value(item: &clean::Item) -> String {
None,
None,
None,
None,
)
}
_ => String::new(),
@ -4551,7 +4550,7 @@ impl<'a> fmt::Display for Source<'a> {
}
write!(fmt, "</pre>")?;
write!(fmt, "{}",
highlight::render_with_highlighting(s, None, None, None, None))?;
highlight::render_with_highlighting(s, None, None, None))?;
Ok(())
}
}
@ -4562,7 +4561,6 @@ fn item_macro(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item,
w.write_str(&highlight::render_with_highlighting(&t.source,
Some("macro"),
None,
None,
None))
})?;
document(w, cx, it)