File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/librustdoc/html/static/js Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -906,7 +906,7 @@ function initSearch(rawSearchIndex) {
906
906
const results_others = { } , results_in_args = { } , results_returned = { } ;
907
907
908
908
function transformResults ( results ) {
909
- const duplicates = { } ;
909
+ const duplicates = new Set ( ) ;
910
910
const out = [ ] ;
911
911
912
912
for ( const result of results ) {
@@ -919,10 +919,10 @@ function initSearch(rawSearchIndex) {
919
919
// To be sure than it some items aren't considered as duplicate.
920
920
obj . fullPath += "|" + obj . ty ;
921
921
922
- if ( duplicates [ obj . fullPath ] ) {
922
+ if ( duplicates . has ( obj . fullPath ) ) {
923
923
continue ;
924
924
}
925
- duplicates [ obj . fullPath ] = true ;
925
+ duplicates . add ( obj . fullPath ) ;
926
926
927
927
obj . href = res [ 1 ] ;
928
928
out . push ( obj ) ;
You can’t perform that action at this time.
0 commit comments