Skip to content

Commit

Permalink
Highlight crate links like normal links
Browse files Browse the repository at this point in the history
  • Loading branch information
camelid committed Aug 23, 2020
1 parent 9d606d9 commit 4419e04
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/librustdoc/html/render/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,11 @@ themePicker.onblur = handleThemeButtonsBlur;
krates
.iter()
.map(|s| {
format!("<li><a href=\"{}index.html\">{}</li>", ensure_trailing_slash(s), s)
format!(
"<li><a class=\"mod\" href=\"{}index.html\">{}</a></li>",
ensure_trailing_slash(s),
s
)
})
.collect::<String>()
);
Expand Down

0 comments on commit 4419e04

Please sign in to comment.