search.js: second argument of convertNameToId is optional
This commit is contained in:
parent
d130e25455
commit
78b92f08f9
1 changed files with 1 additions and 2 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue