]> git.lizzy.rs Git - rust.git/commitdiff
rustdoc: Fix links to static items in the search results
authorOliver Middleton <olliemail27@gmail.com>
Sat, 13 Aug 2016 14:48:38 +0000 (15:48 +0100)
committerOliver Middleton <olliemail27@gmail.com>
Sat, 13 Aug 2016 14:48:38 +0000 (15:48 +0100)
src/librustdoc/html/static/main.js

index 68035e5abe4c28278f908ce180aca006b0c5b41b..0223475be4eb62dc22554b00a023b102b270e87f 100644 (file)
                         displayPath = item.path + '::';
                         href = rootPath + item.path.replace(/::/g, '/') + '/' +
                                name + '/index.html';
-                    } else if (type === 'static' || type === 'reexport') {
-                        displayPath = item.path + '::';
-                        href = rootPath + item.path.replace(/::/g, '/') +
-                               '/index.html';
                     } else if (type === "primitive") {
                         displayPath = "";
                         href = rootPath + item.path.replace(/::/g, '/') +