Skip to content

Commit f0db2cf

Browse files
Use fullpath instead of recreating it
1 parent f2bc09e commit f0db2cf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/librustdoc/html/static/main.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -1267,12 +1267,10 @@
12671267
type = itemTypes[item.ty];
12681268

12691269
if (item.is_alias !== true) {
1270-
var fullPath = item.displayPath + name;
1271-
1272-
if (duplicates[fullPath]) {
1270+
if (duplicates[item.fullPath]) {
12731271
return;
12741272
}
1275-
duplicates[fullPath] = true;
1273+
duplicates[item.fullPath] = true;
12761274
}
12771275
length += 1;
12781276

0 commit comments

Comments
 (0)