about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJacob Hoffman-Andrews <github@hoffman-andrews.com>2021-04-19 12:07:55 -0700
committerJacob Hoffman-Andrews <github@hoffman-andrews.com>2021-04-19 12:07:55 -0700
commit9fcfe5e0c7aaf8e6f0bdcdd36157e08dd67c8b42 (patch)
treeb6e91966fbef0a382252015a8d589217ab2cf2fa /src
parent39b299f8a46fd3c2467a61ce7a5b9829ce03fc7d (diff)
downloadrust-9fcfe5e0c7aaf8e6f0bdcdd36157e08dd67c8b42.tar.gz
rust-9fcfe5e0c7aaf8e6f0bdcdd36157e08dd67c8b42.zip
Remove collapse param from collapseNonInherent.
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/html/static/main.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/librustdoc/html/static/main.js b/src/librustdoc/html/static/main.js
index 76d95dc9d9f..7f6d64e4746 100644
--- a/src/librustdoc/html/static/main.js
+++ b/src/librustdoc/html/static/main.js
@@ -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");
             }
         }
@@ -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);
             });
         }