1
Fork 0

Rollup merge of #93391 - notriddle:notriddle/remove-srclink-tooltip, r=jsha,GuillaumeGomez

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:
Matthias Krüger 2022-01-30 00:04:13 +01:00 committed by GitHub
commit 0b2359baa7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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) { fn write_srclink(cx: &Context<'_>, item: &clean::Item, buf: &mut Buffer) {
if let Some(l) = cx.src_href(item) { 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 %} {% endif %}
{%- match src_href -%} {%- match src_href -%}
{%- when Some with (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 -%} {%- else -%}
{%- endmatch -%} {%- endmatch -%}
<a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs"> {#- -#} <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs"> {#- -#}