Skip to content

Commit 4a00a84

Browse files
committed
search.js: give type to unifiedGenericsMgens
1 parent 3245e7b commit 4a00a84

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3539,7 +3539,7 @@ class DocSearch {
35393539
}
35403540
/** @type {rustdoc.HighlightedFunctionType[]|null} */
35413541
let unifiedGenerics = [];
3542-
// @ts-expect-error
3542+
/** @type {null|Map<number, number>} */
35433543
let unifiedGenericsMgens = null;
35443544
/** @type {rustdoc.HighlightedFunctionType[]|null} */
35453545
const passesUnification = unifyFunctionTypes(
@@ -3593,7 +3593,6 @@ class DocSearch {
35933593
// @ts-expect-error
35943594
queryElem.bindings.get(k),
35953595
whereClause,
3596-
// @ts-expect-error
35973596
unifiedGenericsMgens,
35983597
solutionCb,
35993598
unboxingDepth,

0 commit comments

Comments
 (0)