diff options
| author | binarycat <binarycat@envs.net> | 2025-03-24 18:24:07 -0500 |
|---|---|---|
| committer | binarycat <binarycat@envs.net> | 2025-03-24 18:24:07 -0500 |
| commit | 7f141985ff337926639db092b2ecb5b05a763cd7 (patch) | |
| tree | acc5119f4be1b16b247f317875e68c13d0694b60 /src | |
| parent | ca514c1a13b419606fe051ec897a25a07dc7aa26 (diff) | |
| download | rust-7f141985ff337926639db092b2ecb5b05a763cd7.tar.gz rust-7f141985ff337926639db092b2ecb5b05a763cd7.zip | |
search.js: use @type instead of @ts-expect-error
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustdoc/html/static/js/search.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/librustdoc/html/static/js/search.js b/src/librustdoc/html/static/js/search.js index f714f361d4b..5dda3d34e10 100644 --- a/src/librustdoc/html/static/js/search.js +++ b/src/librustdoc/html/static/js/search.js @@ -3153,26 +3153,22 @@ class DocSearch { } } }; - // @ts-expect-error + /** @type {string[]} */ const type = []; onEachBtwn( fnInputs, - // @ts-expect-error fnType => writeFn(fnType, type), // @ts-expect-error () => pushText({ name: ", ", highlighted: false }, type), ); - // @ts-expect-error pushText({ name: " -> ", highlighted: false }, type); onEachBtwn( fnOutput, - // @ts-expect-error fnType => writeFn(fnType, type), // @ts-expect-error () => pushText({ name: ", ", highlighted: false }, type), ); - // @ts-expect-error return {type, mappedNames, whereClause}; }; |
