about summary refs log tree commit diff
path: root/src/librustdoc/html/static/js/source-script.js
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2022-07-17 14:11:45 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2022-07-17 14:11:45 +0200
commit3024d399a2a72e5724650dbdd8bfa32642e99805 (patch)
tree221abdc726c7b6837407295c51173f8e9c793ba3 /src/librustdoc/html/static/js/source-script.js
parent1cd72b734318720adb99dc72147bb8169ef76ffe (diff)
downloadrust-3024d399a2a72e5724650dbdd8bfa32642e99805.tar.gz
rust-3024d399a2a72e5724650dbdd8bfa32642e99805.zip
Fix auto-expand of trees in source code page sidebar
Diffstat (limited to 'src/librustdoc/html/static/js/source-script.js')
-rw-r--r--src/librustdoc/html/static/js/source-script.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/static/js/source-script.js b/src/librustdoc/html/static/js/source-script.js
index 1e9bfa5cc89..a6a0b09ef31 100644
--- a/src/librustdoc/html/static/js/source-script.js
+++ b/src/librustdoc/html/static/js/source-script.js
@@ -33,7 +33,7 @@ function createDirEntry(elem, parent, fullPath, hasFoundFile) {
     folders.className = "folders";
     if (elem.dirs) {
         for (const dir of elem.dirs) {
-            if (createDirEntry(dir, folders, fullPath, hasFoundFile)) {
+            if (createDirEntry(dir, folders, fullPath, false)) {
                 dirEntry.open = true;
                 hasFoundFile = true;
             }