Skip to content

Commit 4f6772d

Browse files
committed
give local mgens a type
1 parent 9581f19 commit 4f6772d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -2834,7 +2834,7 @@ class DocSearch {
28342834
}
28352835
let fnInputs = null;
28362836
let fnOutput = null;
2837-
// @ts-expect-error
2837+
/** @type {Map<number, number> | null} */
28382838
let mgens = null;
28392839
if (typeInfo !== "elems" && typeInfo !== "returned") {
28402840
fnInputs = unifyFunctionTypes(
@@ -3047,7 +3047,6 @@ class DocSearch {
30473047
writeFn(nested, result);
30483048
}
30493049
return;
3050-
// @ts-expect-error
30513050
} else if (mgens) {
30523051
for (const [queryId, fnId] of mgens) {
30533052
if (fnId === fnType.id) {

0 commit comments

Comments
 (0)