We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Set
Object
1 parent e34dc7f commit 8642c96Copy full SHA for 8642c96
1 file changed
src/librustdoc/html/static/js/search.js
@@ -906,7 +906,7 @@ function initSearch(rawSearchIndex) {
906
const results_others = {}, results_in_args = {}, results_returned = {};
907
908
function transformResults(results) {
909
- const duplicates = {};
+ const duplicates = new Set();
910
const out = [];
911
912
for (const result of results) {
@@ -919,10 +919,10 @@ function initSearch(rawSearchIndex) {
919
// To be sure than it some items aren't considered as duplicate.
920
obj.fullPath += "|" + obj.ty;
921
922
- if (duplicates[obj.fullPath]) {
+ if (duplicates.has(obj.fullPath)) {
923
continue;
924
}
925
- duplicates[obj.fullPath] = true;
+ duplicates.add(obj.fullPath);
926
927
obj.href = res[1];
928
out.push(obj);
0 commit comments