Skip to content

Commit

Permalink
Remove collapse param from collapseNonInherent.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsha committed Apr 19, 2021
1 parent 39b299f commit 9fcfe5e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/librustdoc/html/static/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1073,13 +1073,13 @@ function hideThemeButtonState() {
}
}

function collapseNonInherent(e, collapse) {
function collapseNonInherent(e) {
// inherent impl ids are like "impl" or impl-<number>'.
// they will never be hidden by default.
var n = e.parentElement;
if (n.id.match(/^impl(?:-\d+)?$/) === null) {
// Automatically minimize all non-inherent impls
if (collapse || hasClass(n, "impl")) {
if (hasClass(n, "impl")) {
collapseDocs(e, "hide");
}
}
Expand Down Expand Up @@ -1149,14 +1149,14 @@ function hideThemeButtonState() {
var impl_list = document.getElementById("trait-implementations-list");
if (impl_list !== null) {
onEachLazy(impl_list.getElementsByClassName("collapse-toggle"), function(e) {
collapseNonInherent(e, collapse);
collapseNonInherent(e);
});
}

var blanket_list = document.getElementById("blanket-implementations-list");
if (blanket_list !== null) {
onEachLazy(blanket_list.getElementsByClassName("collapse-toggle"), function(e) {
collapseNonInherent(e, collapse);
collapseNonInherent(e);
});
}

Expand Down

0 comments on commit 9fcfe5e

Please sign in to comment.