Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Extend collision prevention to every type
  • Loading branch information
GuillaumeGomez committed Jun 18, 2018
1 parent afeb790 commit f4ea46a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/librustdoc/html/static/main.js
Expand Up @@ -467,11 +467,7 @@
obj.displayPath = pathSplitter(res[0]);
obj.fullPath = obj.displayPath + obj.name;
// To be sure than it some items aren't considered as duplicate.
if (obj.ty === TY_KEYWORD) {
obj.fullPath += '|k';
} else if (obj.ty === TY_MACRO) {
obj.fullPath += '|m';
}
obj.fullPath += '|' + obj.ty;
obj.href = res[1];
out.push(obj);
if (out.length >= MAX_RESULTS) {
Expand Down

0 comments on commit f4ea46a

Please sign in to comment.