@@ -2515,8 +2515,8 @@ class DocSearch {
2515
2515
*
2516
2516
* @param {rustdoc.ParsedQuery<rustdoc.ParserQueryElement> } origParsedQuery
2517
2517
* - 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
2520
2520
*
2521
2521
* @return {Promise<rustdoc.ResultsTable> }
2522
2522
*/
@@ -4456,8 +4456,7 @@ class DocSearch {
4456
4456
}
4457
4457
4458
4458
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 ) ;
4461
4460
}
4462
4461
4463
4462
/**
@@ -4614,9 +4613,7 @@ class DocSearch {
4614
4613
4615
4614
const isType = parsedQuery . foundElems !== 1 || parsedQuery . hasReturnArrow ;
4616
4615
const [ sorted_in_args , sorted_returned , sorted_others ] = await Promise . all ( [
4617
- // @ts -expect-error
4618
4616
sortResults ( results_in_args , "elems" , currentCrate ) ,
4619
- // @ts -expect-error
4620
4617
sortResults ( results_returned , "returned" , currentCrate ) ,
4621
4618
// @ts -expect-error
4622
4619
sortResults ( results_others , ( isType ? "query" : null ) , currentCrate ) ,
0 commit comments