about summary refs log tree commit diff
path: root/src/librustdoc/html/static/js/stringdex.js
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2025-09-12 11:36:38 -0700
committerMichael Howell <michael@notriddle.com>2025-09-12 14:01:46 -0700
commit277e845162299d533ce64a2a6dfa540d4f36fb30 (patch)
treeb160b802f6be283f68c93dcbdb1c845b15184547 /src/librustdoc/html/static/js/stringdex.js
parent43d45ef2da29aa438c32b5c872bc7a367ef2a2ab (diff)
rustdoc-search: delay loading type name IDs until type search
This avoids blocking on these lookups, so name-based searches
return results more quickly.
Diffstat (limited to 'src/librustdoc/html/static/js/stringdex.js')
-rw-r--r--src/librustdoc/html/static/js/stringdex.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/static/js/stringdex.js b/src/librustdoc/html/static/js/stringdex.js
index 4c465962877..5bdc81e330e 100644
--- a/src/librustdoc/html/static/js/stringdex.js
+++ b/src/librustdoc/html/static/js/stringdex.js
@@ -2310,7 +2310,7 @@ function loadDatabase(hooks) {
                 } else {
                     const start = this.bucket_keys[idx];
                     const bucket = this.buckets[idx];
-                    let data = this.buckets[idx].data;
+                    const data = this.buckets[idx].data;
                     if (data === null) {
                         return this.atAsyncFetch(id, start, bucket);
                     } else {