about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2022-09-30 13:32:33 -0700
committerMichael Howell <michael@notriddle.com>2022-10-08 10:50:03 -0700
commit569384b99a1127e57c7c52c4ee7c5cdb2d5e8b8c (patch)
treefbccbe1d4398516a51e7347b457daf9b5e397ae6
parentc27948d255167d827421401950c6d723ba28de8f (diff)
downloadrust-569384b99a1127e57c7c52c4ee7c5cdb2d5e8b8c.tar.gz
rust-569384b99a1127e57c7c52c4ee7c5cdb2d5e8b8c.zip
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.
-rw-r--r--src/librustdoc/html/render/print_item.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/render/print_item.rs b/src/librustdoc/html/render/print_item.rs
index 7999373511b..6327817364a 100644
--- a/src/librustdoc/html/render/print_item.rs
+++ b/src/librustdoc/html/render/print_item.rs
@@ -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>"
                     }
                     _ => "",
                 };