Skip to content

Commit

Permalink
Use fullpath instead of recreating it
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed May 12, 2018
1 parent f2bc09e commit f0db2cf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/librustdoc/html/static/main.js
Expand Up @@ -1267,12 +1267,10 @@
type = itemTypes[item.ty];

if (item.is_alias !== true) {
var fullPath = item.displayPath + name;

if (duplicates[fullPath]) {
if (duplicates[item.fullPath]) {
return;
}
duplicates[fullPath] = true;
duplicates[item.fullPath] = true;
}
length += 1;

Expand Down

0 comments on commit f0db2cf

Please sign in to comment.