@@ -2515,8 +2515,8 @@ class DocSearch {
25152515 *
25162516 * @param {rustdoc.ParsedQuery<rustdoc.ParserQueryElement> } origParsedQuery
25172517 * - The parsed user query
2518- * @param {Object } [ filterCrates] - Crate to search in if defined
2519- * @param {Object } [ currentCrate] - Current crate, to rank results from this crate higher
2518+ * @param {Object } filterCrates - Crate to search in if defined
2519+ * @param {string } currentCrate - Current crate, to rank results from this crate higher
25202520 *
25212521 * @return {Promise<rustdoc.ResultsTable> }
25222522 */
@@ -4456,8 +4456,7 @@ class DocSearch {
44564456 }
44574457
44584458 results . max_dist = Math . max ( results . max_dist || 0 , tfpDist ) ;
4459- // @ts -expect-error
4460- addIntoResults ( results , row . id . toString ( ) , pos , 0 , tfpDist , 0 , Number . MAX_VALUE ) ;
4459+ addIntoResults ( results , row . id , pos , 0 , tfpDist , 0 , Number . MAX_VALUE ) ;
44614460 }
44624461
44634462 /**
@@ -4614,9 +4613,7 @@ class DocSearch {
46144613
46154614 const isType = parsedQuery . foundElems !== 1 || parsedQuery . hasReturnArrow ;
46164615 const [ sorted_in_args , sorted_returned , sorted_others ] = await Promise . all ( [
4617- // @ts -expect-error
46184616 sortResults ( results_in_args , "elems" , currentCrate ) ,
4619- // @ts -expect-error
46204617 sortResults ( results_returned , "returned" , currentCrate ) ,
46214618 // @ts -expect-error
46224619 sortResults ( results_others , ( isType ? "query" : null ) , currentCrate ) ,
0 commit comments