File tree 2 files changed +2
-2
lines changed
src/librustdoc/html/static/js
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1004,7 +1004,6 @@ function preLoadCss(cssUrl) {
1004
1004
}
1005
1005
1006
1006
function addSidebarCrates ( ) {
1007
- // @ts -expect-error
1008
1007
if ( ! window . ALL_CRATES ) {
1009
1008
return ;
1010
1009
}
@@ -1018,7 +1017,6 @@ function preLoadCss(cssUrl) {
1018
1017
const ul = document . createElement ( "ul" ) ;
1019
1018
ul . className = "block crate" ;
1020
1019
1021
- // @ts -expect-error
1022
1020
for ( const crate of window . ALL_CRATES ) {
1023
1021
const link = document . createElement ( "a" ) ;
1024
1022
link . href = window . rootPath + crate + "/index.html" ;
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ declare global {
7
7
interface Window {
8
8
/** Make the current theme easy to find */
9
9
currentTheme : HTMLLinkElement | null ;
10
+ /** List of all documented crates. */
11
+ ALL_CRATES : string [ ] | undefined ;
10
12
/** Used by the popover tooltip code. */
11
13
RUSTDOC_TOOLTIP_HOVER_MS : number ;
12
14
/** Used by the popover tooltip code. */
You can’t perform that action at this time.
0 commit comments