diff --git a/src/librustdoc/html/render/print_item.rs b/src/librustdoc/html/render/print_item.rs index 1223b6c8002da..3ad376b8a2ca5 100644 --- a/src/librustdoc/html/render/print_item.rs +++ b/src/librustdoc/html/render/print_item.rs @@ -615,7 +615,7 @@ fn item_trait(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, t: &clean::Tra w.write_str(";\n"); if pos < required.len() - 1 { - w.write_str("
"); + w.write_str(""); } } if !required.is_empty() && !provided.is_empty() { @@ -641,7 +641,7 @@ fn item_trait(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, t: &clean::Tra } } if pos < provided.len() - 1 { - w.write_str(""); + w.write_str(""); } } if toggle {