File tree 2 files changed +2
-4
lines changed
src/librustdoc/html/static/js
2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -995,7 +995,6 @@ function preLoadCss(cssUrl) {
995
995
}
996
996
997
997
function addSidebarCrates ( ) {
998
- // @ts -expect-error
999
998
if ( ! window . ALL_CRATES ) {
1000
999
return ;
1001
1000
}
@@ -1009,7 +1008,6 @@ function preLoadCss(cssUrl) {
1009
1008
const ul = document . createElement ( "ul" ) ;
1010
1009
ul . className = "block crate" ;
1011
1010
1012
- // @ts -expect-error
1013
1011
for ( const crate of window . ALL_CRATES ) {
1014
1012
const link = document . createElement ( "a" ) ;
1015
1013
link . href = window . rootPath + crate + "/index.html" ;
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ declare global {
13
13
interface Window {
14
14
/** Make the current theme easy to find */
15
15
currentTheme : HTMLLinkElement | null ;
16
- /** Generated in `render/context.rs` */
17
- SIDEBAR_ITEMS ?: { [ key : string ] : string [ ] } ;
16
+ /** List of all documented crates. */
17
+ ALL_CRATES : string [ ] | undefined ;
18
18
/** Used by the popover tooltip code. */
19
19
RUSTDOC_TOOLTIP_HOVER_MS : number ;
20
20
/** Used by the popover tooltip code. */
You can’t perform that action at this time.
0 commit comments