Skip to content

Commit 4419e04

Browse files
committedAug 23, 2020
Highlight crate links like normal links
1 parent 9d606d9 commit 4419e04

File tree

1 file changed

+5
-1
lines changed
  • src/librustdoc/html/render

1 file changed

+5
-1
lines changed
 

‎src/librustdoc/html/render/mod.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,11 @@ themePicker.onblur = handleThemeButtonsBlur;
10661066
krates
10671067
.iter()
10681068
.map(|s| {
1069-
format!("<li><a href=\"{}index.html\">{}</li>", ensure_trailing_slash(s), s)
1069+
format!(
1070+
"<li><a class=\"mod\" href=\"{}index.html\">{}</a></li>",
1071+
ensure_trailing_slash(s),
1072+
s
1073+
)
10701074
})
10711075
.collect::<String>()
10721076
);

0 commit comments

Comments
 (0)