Skip to content

Commit ed717f3

Browse files
Fix sources sidebar not showing up
1 parent 33e6df4 commit ed717f3

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/librustdoc/html/render.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,7 @@ themePicker.onblur = handleThemeButtonsBlur;
10421042
all_sources.sort();
10431043
let mut w = try_err!(File::create(&dst), &dst);
10441044
try_err!(writeln!(&mut w,
1045-
"var N = null;var sourcesIndex = {{}};\n{}",
1045+
"var N = null;var sourcesIndex = {{}};\n{}\ncreateSourceSidebar();",
10461046
all_sources.join("\n")),
10471047
&dst);
10481048
}

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

-2
Original file line numberDiff line numberDiff line change
@@ -137,5 +137,3 @@ function createSourceSidebar() {
137137

138138
main.insertBefore(sidebar, main.firstChild);
139139
}
140-
141-
createSourceSidebar();

0 commit comments

Comments
 (0)