File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
src/librustdoc/html/static/js Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -625,7 +625,6 @@ function initSearch(rawSearchIndex) {
625625 * @return {integer }
626626 */
627627 function getIdentEndPosition ( parserState ) {
628- const start = parserState . pos ;
629628 let afterIdent = consumeIdent ( parserState ) ;
630629 let end = parserState . pos ;
631630 let macroExclamation = - 1 ;
@@ -2167,7 +2166,7 @@ function initSearch(rawSearchIndex) {
21672166 } ;
21682167 const [ crateDescs , descs ] = await Promise . all ( [
21692168 Promise . all ( crateAliases . map ( fetchDesc ) ) ,
2170- Promise . all ( aliases . map ( fetchDesc ) )
2169+ Promise . all ( aliases . map ( fetchDesc ) ) ,
21712170 ] ) ;
21722171
21732172 const pushFunc = alias => {
@@ -2183,9 +2182,13 @@ function initSearch(rawSearchIndex) {
21832182 }
21842183 } ;
21852184
2186- aliases . forEach ( ( alias , i ) => alias . desc = descs [ i ] ) ;
2185+ aliases . forEach ( ( alias , i ) => {
2186+ alias . desc = descs [ i ] ;
2187+ } ) ;
21872188 aliases . forEach ( pushFunc ) ;
2188- crateAliases . forEach ( ( alias , i ) => alias . desc = crateDescs [ i ] ) ;
2189+ crateAliases . forEach ( ( alias , i ) => {
2190+ alias . desc = crateDescs [ i ] ;
2191+ } ) ;
21892192 crateAliases . forEach ( pushFunc ) ;
21902193 }
21912194
You can’t perform that action at this time.
0 commit comments