search.js: second argument of convertNameToId is optional

This commit is contained in:
binarycat 2025-03-04 13:58:35 -06:00
parent d130e25455
commit 78b92f08f9

View File

@ -2538,7 +2538,7 @@ class DocSearch {
* See `buildTypeMapIndex` for more information.
*
* @param {rustdoc.QueryElement} elem
* @param {boolean} isAssocType
* @param {boolean=} isAssocType
*/
const convertNameToId = (elem, isAssocType) => {
const loweredName = elem.pathLast.toLowerCase();
@ -2618,7 +2618,6 @@ class DocSearch {
];
}
for (const elem2 of elem.generics) {
// @ts-expect-error
convertNameToId(elem2);
}
elem.bindings = new Map(Array.from(elem.bindings.entries())