about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-06-11 10:58:05 +0000
committerbors <bors@rust-lang.org>2024-06-11 10:58:05 +0000
commitdbdc43738bd6b0805c57bd2f336ef044a9d96d7d (patch)
tree5726e1efaef419152ffceea9133da851d1292126
parentacdf564692c4558186e06c7fb6674d789265a976 (diff)
parent3f9c5872b9307b7674555a97493dc5223724a184 (diff)
downloadrust-dbdc43738bd6b0805c57bd2f336ef044a9d96d7d.tar.gz
rust-dbdc43738bd6b0805c57bd2f336ef044a9d96d7d.zip
Auto merge of #12913 - alex-semenyuk:ui_fix, r=xFrednet
Filter from first typed symbol on gh-pages

Cosmetic fix
Don't see the reason that now filter on gh-pages is starting work after 3 symbols typing so remove this condition

Before:

https://github.com/rust-lang/rust-clippy/assets/5480441/fa3b780e-30dc-4fdb-bf2d-5a99337eca4e

After:

https://github.com/rust-lang/rust-clippy/assets/5480441/977e15af-8be5-462c-a703-f10c05e6109c

changelog: gh-pages
-rw-r--r--util/gh-pages/script.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/gh-pages/script.js b/util/gh-pages/script.js
index 7fd779fe9a4..7cca298df8e 100644
--- a/util/gh-pages/script.js
+++ b/util/gh-pages/script.js
@@ -397,7 +397,7 @@
             $scope.bySearch = function (lint, index, array) {
                 let searchStr = $scope.search;
                 // It can be `null` I haven't missed this value
-                if (searchStr == null || searchStr.length < 3) {
+                if (searchStr == null) {
                     return true;
                 }
                 searchStr = searchStr.toLowerCase();