about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2022-06-18 16:11:12 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2022-06-18 20:36:42 +0200
commit5fef77d30e476524b8426f4a359132ca6a432dca (patch)
tree649e947d98bd764688e62ab778adb5da3e3e65bd /src
parent3a8b0144c82197a70e919ad371d56f82c2282833 (diff)
downloadrust-5fef77d30e476524b8426f4a359132ca6a432dca.tar.gz
rust-5fef77d30e476524b8426f4a359132ca6a432dca.zip
Remove weird JS condition
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/html/static/js/search.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/librustdoc/html/static/js/search.js b/src/librustdoc/html/static/js/search.js
index c726aeeff47..c0b274c0a3f 100644
--- a/src/librustdoc/html/static/js/search.js
+++ b/src/librustdoc/html/static/js/search.js
@@ -1333,10 +1333,7 @@ function initSearch(rawSearchIndex) {
             if (searchWord.indexOf(elem.pathLast) > -1 ||
                 row.normalizedName.indexOf(elem.pathLast) > -1
             ) {
-                // filter type: ... queries
-                if (!results_others[fullId] !== undefined) {
-                    index = row.normalizedName.indexOf(elem.pathLast);
-                }
+                index = row.normalizedName.indexOf(elem.pathLast);
             }
             lev = levenshtein(searchWord, elem.pathLast);
             if (lev > 0 && elem.pathLast.length > 2 && searchWord.indexOf(elem.pathLast) > -1) {