]> git.lizzy.rs Git - rust.git/commitdiff
Use fullpath instead of recreating it
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Sat, 12 May 2018 21:44:40 +0000 (23:44 +0200)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Sat, 12 May 2018 21:44:40 +0000 (23:44 +0200)
src/librustdoc/html/static/main.js

index 3ee06a964de9d3da46b5bd22f7ceacc157bf6e38..9224bd1c5089037fb3788a6b123088a5c2f007d5 100644 (file)
                     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;