Skip to content

Commit ca3213c

Browse files
fix invalid items removal
1 parent 84b91d6 commit ca3213c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/librustdoc/html/static/main.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -1212,11 +1212,13 @@
12121212
array.forEach(function(item) {
12131213
var name, type, href, displayPath;
12141214

1215-
if (shown.indexOf(item.ty) !== -1) {
1215+
var id_ty = item.ty + item.path + item.name;
1216+
if (shown.indexOf(id_ty) !== -1) {
12161217
return;
12171218
}
12181219

1219-
shown.push(item.ty);
1220+
console.log(item);
1221+
shown.push(id_ty);
12201222
name = item.name;
12211223
type = itemTypes[item.ty];
12221224

0 commit comments

Comments
 (0)