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 46ff3ad commit 76c4947Copy full SHA for 76c4947
src/librustdoc/html/static/js/search.js
@@ -4496,7 +4496,7 @@ class DocSearch {
4496
if (parsedQuery.foundElems === 1 && !parsedQuery.hasReturnArrow) {
4497
const elem = parsedQuery.elems[0];
4498
// use arrow functions to preserve `this`.
4499
- // @ts-expect-error
+ /** @type {function(number): void} */
4500
const handleNameSearch = id => {
4501
const row = this.searchIndex[id];
4502
if (!typePassesFilter(elem.typeFilter, row.ty) ||
@@ -4509,7 +4509,7 @@ class DocSearch {
4509
4510
const maybePathDist = checkPath(elem.pathWithoutLast, row);
4511
if (maybePathDist === null) {
4512
- return
+ return;
4513
}
4514
pathDist = maybePathDist;
4515
0 commit comments