diff options
| author | binarycat <binarycat@envs.net> | 2025-03-04 14:28:45 -0600 |
|---|---|---|
| committer | binarycat <binarycat@envs.net> | 2025-03-04 14:28:45 -0600 |
| commit | 4f6772d2ac31cdf5ca4fb0b3087a0d884a1f2c5c (patch) | |
| tree | d5bfd305effe8334dc902ff9c0de0e1588a7d7b8 | |
| parent | 9581f1935bd7a8c66e17c6d65ee286f03ca2c60a (diff) | |
| download | rust-4f6772d2ac31cdf5ca4fb0b3087a0d884a1f2c5c.tar.gz rust-4f6772d2ac31cdf5ca4fb0b3087a0d884a1f2c5c.zip | |
give local mgens a type
| -rw-r--r-- | src/librustdoc/html/static/js/search.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/librustdoc/html/static/js/search.js b/src/librustdoc/html/static/js/search.js index fb481638061..335e35b211b 100644 --- a/src/librustdoc/html/static/js/search.js +++ b/src/librustdoc/html/static/js/search.js @@ -2834,7 +2834,7 @@ class DocSearch { } let fnInputs = null; let fnOutput = null; - // @ts-expect-error + /** @type {Map<number, number> | null} */ let mgens = null; if (typeInfo !== "elems" && typeInfo !== "returned") { fnInputs = unifyFunctionTypes( @@ -3047,7 +3047,6 @@ class DocSearch { writeFn(nested, result); } return; - // @ts-expect-error } else if (mgens) { for (const [queryId, fnId] of mgens) { if (fnId === fnType.id) { |
