Skip to content

Commit f4ea46a

Browse files
Extend collision prevention to every type
1 parent afeb790 commit f4ea46a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Diff for: src/librustdoc/html/static/main.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -467,11 +467,7 @@
467467
obj.displayPath = pathSplitter(res[0]);
468468
obj.fullPath = obj.displayPath + obj.name;
469469
// To be sure than it some items aren't considered as duplicate.
470-
if (obj.ty === TY_KEYWORD) {
471-
obj.fullPath += '|k';
472-
} else if (obj.ty === TY_MACRO) {
473-
obj.fullPath += '|m';
474-
}
470+
obj.fullPath += '|' + obj.ty;
475471
obj.href = res[1];
476472
out.push(obj);
477473
if (out.length >= MAX_RESULTS) {

0 commit comments

Comments
 (0)