File tree 1 file changed +3
-3
lines changed
src/librustdoc/html/render
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -808,7 +808,7 @@ function handleThemeButtonsBlur(e) {{
808
808
themePicker.onclick = switchThemeButtonState;
809
809
themePicker.onblur = handleThemeButtonsBlur;
810
810
{}.forEach(function(item) {{
811
- var but = document.createElement(\ "button\ ");
811
+ var but = document.createElement("button");
812
812
but.textContent = item;
813
813
but.onclick = function(el) {{
814
814
switchTheme(currentTheme, mainTheme, item, true);
@@ -1031,11 +1031,11 @@ themePicker.onblur = handleThemeButtonsBlur;
1031
1031
// with rustdoc running in parallel.
1032
1032
all_indexes. sort ( ) ;
1033
1033
{
1034
- let mut v = String :: from ( "var searchIndex = JSON.parse(\" { \\ n" ) ;
1034
+ let mut v = String :: from ( "var searchIndex = JSON.parse('{ \ \\n " ) ;
1035
1035
v. push_str ( & all_indexes. join ( ",\\ \n " ) ) ;
1036
1036
// "addSearchOptions" has to be called first so the crate filtering can be set before the
1037
1037
// search might start (if it's set into the URL for example).
1038
- v. push_str ( "\\ \n }\" );\n addSearchOptions(searchIndex);initSearch(searchIndex);" ) ;
1038
+ v. push_str ( "\\ \n }' );\n addSearchOptions(searchIndex);initSearch(searchIndex);" ) ;
1039
1039
cx. shared . fs . write ( & dst, & v) ?;
1040
1040
}
1041
1041
if options. enable_index_page {
You can’t perform that action at this time.
0 commit comments