Skip to content

Commit 0284ce4

Browse files
committed
Try to fix CI error
1 parent 0d8ba99 commit 0284ce4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/librustdoc/html/static/js/search.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -3723,9 +3723,9 @@ async function search(forced) {
37233723
}
37243724

37253725
/**
3726-
* Callback for when the search form is submitted.
3727-
* @param {Event} [e] - The event that triggered this call, if any
3728-
*/
3726+
* Callback for when the search form is submitted.
3727+
* @param {Event} [e] - The event that triggered this call, if any
3728+
*/
37293729
function onSearchSubmit(e) {
37303730
e.preventDefault();
37313731
searchState.clearInputTimeout();
@@ -3903,7 +3903,8 @@ function initSearch(searchIndx) {
39033903
if (typeof window !== "undefined") {
39043904
docSearch = new DocSearch(rawSearchIndex);
39053905
} else if (typeof exports !== "undefined") {
3906-
exports.docSearch = new DocSearch(rawSearchIndex);
3906+
docSearch = new DocSearch(rawSearchIndex);
3907+
exports.docSearch = docSearch;
39073908
exports.parseQuery = DocSearch.parseQuery;
39083909
}
39093910
}

0 commit comments

Comments
 (0)