Skip to content

Commit

Permalink
Fix auto-expand of trees in source code page sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jul 17, 2022
1 parent 1cd72b7 commit 3024d39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/html/static/js/source-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3024d39

Please sign in to comment.