File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
src/librustdoc/html/static Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -1338,17 +1338,11 @@ function hideThemeButtonState() {
1338
1338
var valGenerics = extractGenerics ( val ) ;
1339
1339
1340
1340
var paths = valLower . split ( "::" ) ;
1341
- var j ;
1342
- for ( j = 0 , len = paths . length ; j < len ; ++ j ) {
1343
- if ( paths [ j ] === "" ) {
1344
- paths . splice ( j , 1 ) ;
1345
- j -= 1 ;
1346
- }
1347
- }
1341
+ paths = paths . filter ( function ( segment ) { return segment !== "" ; } ) ;
1348
1342
val = paths [ paths . length - 1 ] ;
1349
1343
var contains = paths . slice ( 0 , paths . length > 1 ? paths . length - 1 : 1 ) ;
1350
1344
1351
- var lev ;
1345
+ var lev , j ;
1352
1346
for ( j = 0 ; j < nSearchWords ; ++ j ) {
1353
1347
ty = searchIndex [ j ] ;
1354
1348
if ( ! ty || ( filterCrates !== undefined && ty . crate !== filterCrates ) ) {
You can’t perform that action at this time.
0 commit comments