@@ -2514,8 +2514,8 @@ class DocSearch {
2514
2514
*
2515
2515
* @param {rustdoc.ParsedQuery<rustdoc.ParserQueryElement> } origParsedQuery
2516
2516
* - The parsed user query
2517
- * @param {Object } [ filterCrates] - Crate to search in if defined
2518
- * @param {Object } [ currentCrate] - Current crate, to rank results from this crate higher
2517
+ * @param {Object } filterCrates - Crate to search in if defined
2518
+ * @param {string } currentCrate - Current crate, to rank results from this crate higher
2519
2519
*
2520
2520
* @return {Promise<rustdoc.ResultsTable> }
2521
2521
*/
@@ -4455,8 +4455,7 @@ class DocSearch {
4455
4455
}
4456
4456
4457
4457
results . max_dist = Math . max ( results . max_dist || 0 , tfpDist ) ;
4458
- // @ts -expect-error
4459
- addIntoResults ( results , row . id . toString ( ) , pos , 0 , tfpDist , 0 , Number . MAX_VALUE ) ;
4458
+ addIntoResults ( results , row . id , pos , 0 , tfpDist , 0 , Number . MAX_VALUE ) ;
4460
4459
}
4461
4460
4462
4461
/**
@@ -4613,9 +4612,7 @@ class DocSearch {
4613
4612
4614
4613
const isType = parsedQuery . foundElems !== 1 || parsedQuery . hasReturnArrow ;
4615
4614
const [ sorted_in_args , sorted_returned , sorted_others ] = await Promise . all ( [
4616
- // @ts -expect-error
4617
4615
sortResults ( results_in_args , "elems" , currentCrate ) ,
4618
- // @ts -expect-error
4619
4616
sortResults ( results_returned , "returned" , currentCrate ) ,
4620
4617
// @ts -expect-error
4621
4618
sortResults ( results_others , ( isType ? "query" : null ) , currentCrate ) ,
0 commit comments