File tree 1 file changed +2
-2
lines changed
src/librustdoc/html/render
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -297,7 +297,7 @@ pub(super) fn write_shared(
297
297
. replace( "\\ \" " , "\\ \\ \" " )
298
298
) ) ;
299
299
all_sources. sort ( ) ;
300
- let mut v = String :: from ( "const srcIndex = new Map(JSON.parse('[\\ \n " ) ;
300
+ let mut v = String :: from ( "var srcIndex = new Map(JSON.parse('[\\ \n " ) ;
301
301
v. push_str ( & all_sources. join ( ",\\ \n " ) ) ;
302
302
v. push_str ( "\\ \n ]'));\n createSrcSidebar();\n " ) ;
303
303
Ok ( v. into_bytes ( ) )
@@ -317,7 +317,7 @@ pub(super) fn write_shared(
317
317
// with rustdoc running in parallel.
318
318
all_indexes. sort ( ) ;
319
319
write_invocation_specific ( "search-index.js" , & || {
320
- let mut v = String :: from ( "const searchIndex = new Map(JSON.parse('[\\ \n " ) ;
320
+ let mut v = String :: from ( "var searchIndex = new Map(JSON.parse('[\\ \n " ) ;
321
321
v. push_str ( & all_indexes. join ( ",\\ \n " ) ) ;
322
322
v. push_str (
323
323
r#"\
You can’t perform that action at this time.
0 commit comments