Skip to content

Commit 3024d39

Browse files
Fix auto-expand of trees in source code page sidebar
1 parent 1cd72b7 commit 3024d39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/static/js/source-script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function createDirEntry(elem, parent, fullPath, hasFoundFile) {
3333
folders.className = "folders";
3434
if (elem.dirs) {
3535
for (const dir of elem.dirs) {
36-
if (createDirEntry(dir, folders, fullPath, hasFoundFile)) {
36+
if (createDirEntry(dir, folders, fullPath, false)) {
3737
dirEntry.open = true;
3838
hasFoundFile = true;
3939
}

0 commit comments

Comments
 (0)