File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/librustdoc/html/static Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1081,14 +1081,13 @@ function getSearchElement() {
10811081 val = paths [ paths . length - 1 ] ;
10821082 var contains = paths . slice ( 0 , paths . length > 1 ? paths . length - 1 : 1 ) ;
10831083
1084+ var lev ;
1085+ var lev_distance ;
10841086 for ( j = 0 ; j < nSearchWords ; ++ j ) {
1085- var lev ;
1086- var lev_distance ;
10871087 ty = searchIndex [ j ] ;
10881088 if ( ! ty || ( filterCrates !== undefined && ty . crate !== filterCrates ) ) {
10891089 continue ;
10901090 }
1091- var lev_distance ;
10921091 var lev_add = 0 ;
10931092 if ( paths . length > 1 ) {
10941093 lev = checkPath ( contains , paths [ paths . length - 1 ] , ty ) ;
@@ -1633,7 +1632,7 @@ function getSearchElement() {
16331632 }
16341633
16351634 var filterCrates = getFilterCrates ( ) ;
1636- showResults ( execSearch ( query , index , filterCrates ) , filterCrates ) ;
1635+ showResults ( execSearch ( query , index , filterCrates ) ) ;
16371636 }
16381637
16391638 function buildIndex ( rawSearchIndex ) {
You can’t perform that action at this time.
0 commit comments