We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eda9cec commit 6e2ded8Copy full SHA for 6e2ded8
src/librustdoc/html/static/js/search.js
@@ -4497,7 +4497,7 @@ class DocSearch {
4497
if (parsedQuery.foundElems === 1 && !parsedQuery.hasReturnArrow) {
4498
const elem = parsedQuery.elems[0];
4499
// use arrow functions to preserve `this`.
4500
- // @ts-expect-error
+ /** @type {function(number): void} */
4501
const handleNameSearch = id => {
4502
const row = this.searchIndex[id];
4503
if (!typePassesFilter(elem.typeFilter, row.ty) ||
@@ -4510,7 +4510,7 @@ class DocSearch {
4510
4511
const maybePathDist = checkPath(elem.pathWithoutLast, row);
4512
if (maybePathDist === null) {
4513
- return
+ return;
4514
}
4515
pathDist = maybePathDist;
4516
0 commit comments