diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2018-05-12 23:44:40 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2018-05-12 23:44:40 +0200 |
| commit | f0db2cf14e8b58eb04d40e8aebea0a7a987097eb (patch) | |
| tree | 7c233903eeb2fa952d766aca39a30c302206152e | |
| parent | f2bc09e68bfc5d84a7abf49bedb5ced8f99b95a7 (diff) | |
| download | rust-f0db2cf14e8b58eb04d40e8aebea0a7a987097eb.tar.gz rust-f0db2cf14e8b58eb04d40e8aebea0a7a987097eb.zip | |
Use fullpath instead of recreating it
| -rw-r--r-- | src/librustdoc/html/static/main.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/librustdoc/html/static/main.js b/src/librustdoc/html/static/main.js index 3ee06a964de..9224bd1c508 100644 --- a/src/librustdoc/html/static/main.js +++ b/src/librustdoc/html/static/main.js @@ -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; |
