File tree 1 file changed +7
-4
lines changed
src/librustdoc/html/static/js
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -625,7 +625,6 @@ function initSearch(rawSearchIndex) {
625
625
* @return {integer }
626
626
*/
627
627
function getIdentEndPosition ( parserState ) {
628
- const start = parserState . pos ;
629
628
let afterIdent = consumeIdent ( parserState ) ;
630
629
let end = parserState . pos ;
631
630
let macroExclamation = - 1 ;
@@ -2167,7 +2166,7 @@ function initSearch(rawSearchIndex) {
2167
2166
} ;
2168
2167
const [ crateDescs , descs ] = await Promise . all ( [
2169
2168
Promise . all ( crateAliases . map ( fetchDesc ) ) ,
2170
- Promise . all ( aliases . map ( fetchDesc ) )
2169
+ Promise . all ( aliases . map ( fetchDesc ) ) ,
2171
2170
] ) ;
2172
2171
2173
2172
const pushFunc = alias => {
@@ -2183,9 +2182,13 @@ function initSearch(rawSearchIndex) {
2183
2182
}
2184
2183
} ;
2185
2184
2186
- aliases . forEach ( ( alias , i ) => alias . desc = descs [ i ] ) ;
2185
+ aliases . forEach ( ( alias , i ) => {
2186
+ alias . desc = descs [ i ] ;
2187
+ } ) ;
2187
2188
aliases . forEach ( pushFunc ) ;
2188
- crateAliases . forEach ( ( alias , i ) => alias . desc = crateDescs [ i ] ) ;
2189
+ crateAliases . forEach ( ( alias , i ) => {
2190
+ alias . desc = crateDescs [ i ] ;
2191
+ } ) ;
2189
2192
crateAliases . forEach ( pushFunc ) ;
2190
2193
}
2191
2194
You can’t perform that action at this time.
0 commit comments