More cleanup

This commit is contained in:
Guillaume Gomez
2021-01-24 17:41:21 +01:00
parent 9a64180f0d
commit cac238e4a3
3 changed files with 18 additions and 30 deletions

View File

@@ -2587,11 +2587,8 @@ fn item_trait(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, t: &clean::Tra
);
if !t.generics.where_predicates.is_empty() {
write!(
w,
"{}",
WhereClause { gens: &t.generics, indent: 0, end_newline: true }.print(cx.cache())
);
let where_ = WhereClause { gens: &t.generics, indent: 0, end_newline: true };
write!(w, "{}", where_.print(cx.cache()));
} else {
write!(w, " ");
}