mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
search.js: second argument of convertNameToId is optional
This commit is contained in:
parent
d130e25455
commit
78b92f08f9
@ -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…
Reference in New Issue
Block a user