Skip to content

Commit 78b92f0

Browse files
committed
search.js: second argument of convertNameToId is optional
1 parent d130e25 commit 78b92f0

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
@@ -2538,7 +2538,7 @@ class DocSearch {
25382538
* See `buildTypeMapIndex` for more information.
25392539
*
25402540
* @param {rustdoc.QueryElement} elem
2541-
* @param {boolean} isAssocType
2541+
* @param {boolean=} isAssocType
25422542
*/
25432543
const convertNameToId = (elem, isAssocType) => {
25442544
const loweredName = elem.pathLast.toLowerCase();
@@ -2618,7 +2618,6 @@ class DocSearch {
26182618
];
26192619
}
26202620
for (const elem2 of elem.generics) {
2621-
// @ts-expect-error
26222621
convertNameToId(elem2);
26232622
}
26242623
elem.bindings = new Map(Array.from(elem.bindings.entries())

0 commit comments

Comments
 (0)