1
Fork 0

Fix tidy check errors

This commit is contained in:
Hirokazu Hata 2019-02-23 17:02:57 +09:00
parent 1932d7a52d
commit 1fe87df104
4 changed files with 45 additions and 10 deletions

View file

@ -2541,8 +2541,13 @@ fn render_markdown(w: &mut fmt::Formatter<'_>,
cx.codes))
}
fn document_short(w: &mut fmt::Formatter<'_>, cx: &Context, item: &clean::Item, link: AssocItemLink<'_>,
prefix: &str, is_hidden: bool) -> fmt::Result {
fn document_short(
w: &mut fmt::Formatter<'_>,
cx: &Context,
item: &clean::Item,
link: AssocItemLink<'_>,
prefix: &str, is_hidden: bool
) -> fmt::Result {
if let Some(s) = item.doc_value() {
let markdown = if s.contains('\n') {
format!("{} [Read more]({})",