Skip to content

Commit d5141e6

Browse files
No need to call getPageId a second time
1 parent c86039b commit d5141e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/static/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2686,7 +2686,7 @@ function defocusSearchBar() {
26862686
hideSidebar();
26872687
};
26882688

2689-
autoCollapse(getPageId(), getCurrentValue("rustdoc-collapse") === "true");
2689+
autoCollapse(pageId, getCurrentValue("rustdoc-collapse") === "true");
26902690

26912691
if (window.location.hash && window.location.hash.length > 0) {
26922692
expandSection(window.location.hash.replace(/^#/, ""));

0 commit comments

Comments
 (0)