Skip to content

Commit bcef5e7

Browse files
committed
Revert changes to all.html
This code wasn't actually working, and trying to SEO optimize that page is pointless anyway.
1 parent 1bedd4d commit bcef5e7

File tree

1 file changed

+1
-6
lines changed
  • src/librustdoc/html/render

1 file changed

+1
-6
lines changed

src/librustdoc/html/render/mod.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -534,17 +534,12 @@ impl<'tcx> FormatRenderer<'tcx> for Context<'tcx> {
534534
if !root_path.ends_with('/') {
535535
root_path.push('/');
536536
}
537-
let description = krate
538-
.module
539-
.as_ref()
540-
.and_then(|item| Some(plain_text_summary(item.doc_value()?.as_str())))
541-
.unwrap_or_else(|| String::from("List of all items in this crate"));
542537
let mut page = layout::Page {
543538
title: "List of all items in this crate",
544539
css_class: "mod",
545540
root_path: "../",
546541
static_root_path: self.shared.static_root_path.as_deref(),
547-
description: description.as_str(),
542+
description: "List of all items in this crate",
548543
keywords: BASIC_KEYWORDS,
549544
resource_suffix: &self.shared.resource_suffix,
550545
extra_scripts: &[],

0 commit comments

Comments
 (0)