about summary refs log tree commit diff
path: root/src/librustdoc/html/render
diff options
context:
space:
mode:
authorAlexis (Poliorcetics) Bourget <ab_github@poliorcetiq.eu>2023-07-08 17:29:05 +0200
committerAlexis (Poliorcetics) Bourget <ab_github@poliorcetiq.eu>2023-10-29 22:57:45 +0100
commit40556b968ca044108d5f28d7a8810821c8be7d9d (patch)
tree27dc225b521d56e97b7d296bb1994b5cf4f3de3b /src/librustdoc/html/render
parent51e22be682e4ed5864e36400cbbc10836ee52c7e (diff)
downloadrust-40556b968ca044108d5f28d7a8810821c8be7d9d.tar.gz
rust-40556b968ca044108d5f28d7a8810821c8be7d9d.zip
feat: Add 'object-safety' ID to init_id_map() in rustdoc
Diffstat (limited to 'src/librustdoc/html/render')
-rw-r--r--src/librustdoc/html/render/print_item.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustdoc/html/render/print_item.rs b/src/librustdoc/html/render/print_item.rs
index 4d518a3e20b..c852f01f450 100644
--- a/src/librustdoc/html/render/print_item.rs
+++ b/src/librustdoc/html/render/print_item.rs
@@ -965,7 +965,8 @@ fn item_trait(w: &mut Buffer, cx: &mut Context<'_>, it: &clean::Item, t: &clean:
             w,
             "object-safety",
             "Object Safety",
-            &format!("<div class=\"object-safety-info\">This trait is <b>not</b> \
+            &format!(
+                "<div class=\"object-safety-info\">This trait is <b>not</b> \
                 <a href=\"{base}/reference/items/traits.html#object-safety\">\
                 object safe</a>.</div>",
                 base = crate::clean::utils::DOC_RUST_LANG_ORG_CHANNEL