Skip to content

Commit 569384b

Browse files
committed
rustdoc: remove weird <a href="#"> wrapper around unsafe triangle
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.
1 parent c27948d commit 569384b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/render/print_item.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ fn item_module(w: &mut Buffer, cx: &mut Context<'_>, item: &clean::Item, items:
400400
if myitem.fn_header(cx.tcx()).unwrap().unsafety
401401
== hir::Unsafety::Unsafe =>
402402
{
403-
"<a title=\"unsafe function\" href=\"#\"><sup>⚠</sup></a>"
403+
"<sup title=\"unsafe function\">⚠</sup>"
404404
}
405405
_ => "",
406406
};

0 commit comments

Comments
 (0)