Skip to content

Commit

Permalink
rustdoc: remove weird <a href="#"> wrapper around unsafe triangle
Browse files Browse the repository at this point in the history
This DOM cleanup changes the color of the triangle, from blue to black, but
since it's still a different color from the link it's next to, it should
still be noticeable.
  • Loading branch information
notriddle committed Oct 8, 2022
1 parent c27948d commit 569384b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/html/render/print_item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ fn item_module(w: &mut Buffer, cx: &mut Context<'_>, item: &clean::Item, items:
if myitem.fn_header(cx.tcx()).unwrap().unsafety
== hir::Unsafety::Unsafe =>
{
"<a title=\"unsafe function\" href=\"#\"><sup>⚠</sup></a>"
"<sup title=\"unsafe function\">⚠</sup>"
}
_ => "",
};
Expand Down

0 comments on commit 569384b

Please sign in to comment.