From 2e38e3b9b4263e9f171fac190f1f4f9283d798bb Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Thu, 27 Jan 2022 15:09:52 -0700 Subject: [PATCH] rustdoc: remove tooltip from source link This made more sense back when it was abbreviated, but now it seems redundant. --- src/librustdoc/html/render/mod.rs | 2 +- src/librustdoc/html/templates/print_item.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs index 32e4a829184..24eaaf913ea 100644 --- a/src/librustdoc/html/render/mod.rs +++ b/src/librustdoc/html/render/mod.rs @@ -182,7 +182,7 @@ impl StylePath { fn write_srclink(cx: &Context<'_>, item: &clean::Item, buf: &mut Buffer) { if let Some(l) = cx.src_href(item) { - write!(buf, "source", l) + write!(buf, "source", l) } } diff --git a/src/librustdoc/html/templates/print_item.html b/src/librustdoc/html/templates/print_item.html index 1fa84e1c31f..62b1b7ca729 100644 --- a/src/librustdoc/html/templates/print_item.html +++ b/src/librustdoc/html/templates/print_item.html @@ -20,7 +20,7 @@ {% endif %} {%- match src_href -%} {%- when Some with (href) -%} - source · {# -#} + source · {# -#} {%- else -%} {%- endmatch -%} {#- -#}