Skip to content

Commit 9fcfe5e

Browse files
committed
Remove collapse param from collapseNonInherent.
1 parent 39b299f commit 9fcfe5e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/librustdoc/html/static/main.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,13 +1073,13 @@ function hideThemeButtonState() {
10731073
}
10741074
}
10751075

1076-
function collapseNonInherent(e, collapse) {
1076+
function collapseNonInherent(e) {
10771077
// inherent impl ids are like "impl" or impl-<number>'.
10781078
// they will never be hidden by default.
10791079
var n = e.parentElement;
10801080
if (n.id.match(/^impl(?:-\d+)?$/) === null) {
10811081
// Automatically minimize all non-inherent impls
1082-
if (collapse || hasClass(n, "impl")) {
1082+
if (hasClass(n, "impl")) {
10831083
collapseDocs(e, "hide");
10841084
}
10851085
}
@@ -1149,14 +1149,14 @@ function hideThemeButtonState() {
11491149
var impl_list = document.getElementById("trait-implementations-list");
11501150
if (impl_list !== null) {
11511151
onEachLazy(impl_list.getElementsByClassName("collapse-toggle"), function(e) {
1152-
collapseNonInherent(e, collapse);
1152+
collapseNonInherent(e);
11531153
});
11541154
}
11551155

11561156
var blanket_list = document.getElementById("blanket-implementations-list");
11571157
if (blanket_list !== null) {
11581158
onEachLazy(blanket_list.getElementsByClassName("collapse-toggle"), function(e) {
1159-
collapseNonInherent(e, collapse);
1159+
collapseNonInherent(e);
11601160
});
11611161
}
11621162

0 commit comments

Comments
 (0)