about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSunshine <sunshine_40@qq.com>2024-06-07 06:09:30 +0800
committerSunshine <sunshine_40@qq.com>2024-06-07 06:09:30 +0800
commitf9f51839e5b5ebc92848bfcf924040c4f4b65df4 (patch)
tree5cd4948de84c4a7098db00da792ef7c1b85cdd7b
parentdd5103bb6810e2e8d7e84f35749564a2a35dd5df (diff)
downloadrust-f9f51839e5b5ebc92848bfcf924040c4f4b65df4.tar.gz
rust-f9f51839e5b5ebc92848bfcf924040c4f4b65df4.zip
Tidying
-rw-r--r--src/librustdoc/html/static/js/search.js6
-rw-r--r--tests/rustdoc-js/non-english-identifier.js2
2 files changed, 5 insertions, 3 deletions
diff --git a/src/librustdoc/html/static/js/search.js b/src/librustdoc/html/static/js/search.js
index 8322ea90490..f4b81e4b7ee 100644
--- a/src/librustdoc/html/static/js/search.js
+++ b/src/librustdoc/html/static/js/search.js
@@ -2162,7 +2162,8 @@ function initSearch(rawSearchIndex) {
             aliases.sort(sortFunc);
 
             const fetchDesc = alias => {
-                return searchIndexEmptyDesc.get(alias.crate).contains(alias.bitIndex) ? "" : searchState.loadDesc(alias);
+                return searchIndexEmptyDesc.get(alias.crate).contains(alias.bitIndex) ?
+                    "" : searchState.loadDesc(alias);
             };
             const [crateDescs, descs] = await Promise.all([
                 Promise.all(crateAliases.map(fetchDesc)),
@@ -2546,7 +2547,8 @@ function initSearch(rawSearchIndex) {
             sorted_returned,
             sorted_others,
             parsedQuery);
-        await handleAliases(ret, parsedQuery.original.replace(/"/g, ""), filterCrates, currentCrate);
+        await handleAliases(ret, parsedQuery.original.replace(/"/g, ""),
+            filterCrates, currentCrate);
         await Promise.all([ret.others, ret.returned, ret.in_args].map(async list => {
             const descs = await Promise.all(list.map(result => {
                 return searchIndexEmptyDesc.get(result.crate).contains(result.bitIndex) ?
diff --git a/tests/rustdoc-js/non-english-identifier.js b/tests/rustdoc-js/non-english-identifier.js
index 59c6a3a7f99..84209aa04c0 100644
--- a/tests/rustdoc-js/non-english-identifier.js
+++ b/tests/rustdoc-js/non-english-identifier.js
@@ -160,4 +160,4 @@ const EXPECTED = [
         in_args: [],
         returned: [],
     },
-];
\ No newline at end of file
+];