File tree Expand file tree Collapse file tree 3 files changed +2
-2
lines changed
src/librustdoc/html/static/js Expand file tree Collapse file tree 3 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -407,7 +407,6 @@ function preLoadCss(cssUrl) {
407
407
function loadSearch ( ) {
408
408
if ( ! searchLoaded ) {
409
409
searchLoaded = true ;
410
- // @ts -expect-error
411
410
window . rr_ = data => {
412
411
window . searchIndex = data ;
413
412
} ;
Original file line number Diff line number Diff line change @@ -95,6 +95,8 @@ declare global {
95
95
rustdoc_remove_line_numbers_from_examples ?: function ( ) ,
96
96
/** JSON-encoded raw search index */
97
97
searchIndex : string,
98
+ /** Used in search index shards in order to load data into the in-memory database */
99
+ rr_ : function ( string ) ,
98
100
}
99
101
interface HTMLElement {
100
102
/** Used by the popover tooltip code. */
Original file line number Diff line number Diff line change @@ -5245,7 +5245,6 @@ if (typeof window !== "undefined") {
5245
5245
// this script doesn't need to launch it, but
5246
5246
// must pick it up
5247
5247
if ( window . searchIndex ) {
5248
- // @ts -ignore
5249
5248
window . rr_ ( window . searchIndex ) ;
5250
5249
}
5251
5250
} ,
You can’t perform that action at this time.
0 commit comments