rustdoc: remove tooltip from source link

This made more sense back when it was abbreviated, but now it
seems redundant.
This commit is contained in:
Michael Howell 2022-01-27 15:09:52 -07:00
parent 21b4a9cfdc
commit 2e38e3b9b4
2 changed files with 2 additions and 2 deletions

View file

@ -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, "<a class=\"srclink\" href=\"{}\" title=\"goto source code\">source</a>", l)
write!(buf, "<a class=\"srclink\" href=\"{}\">source</a>", l)
}
}

View file

@ -20,7 +20,7 @@
{% endif %}
{%- match src_href -%}
{%- when Some with (href) -%}
<a class="srclink" href="{{href|safe}}" title="goto source code">source</a> · {# -#}
<a class="srclink" href="{{href|safe}}">source</a> · {# -#}
{%- else -%}
{%- endmatch -%}
<a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs"> {#- -#}