diff options
| author | binarycat <binarycat@envs.net> | 2025-03-26 20:32:14 -0500 | 
|---|---|---|
| committer | binarycat <binarycat@envs.net> | 2025-03-27 16:00:44 -0500 | 
| commit | 65624d9ea5c2aee3f3c7729f3b8d72c0920df6e6 (patch) | |
| tree | 14b14f1329f7d27ce87d57bfbd250f53829c5117 | |
| parent | 74b7599230996968c476a5ea9b5e44be545e673e (diff) | |
| download | rust-65624d9ea5c2aee3f3c7729f3b8d72c0920df6e6.tar.gz rust-65624d9ea5c2aee3f3c7729f3b8d72c0920df6e6.zip  | |
tester.js: ignore displayTypeSignature if it is null
| -rw-r--r-- | src/tools/rustdoc-js/tester.js | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/rustdoc-js/tester.js b/src/tools/rustdoc-js/tester.js index ea575f27799..f70fc917770 100644 --- a/src/tools/rustdoc-js/tester.js +++ b/src/tools/rustdoc-js/tester.js @@ -451,7 +451,7 @@ function loadSearchJS(doc_folder, resource_suffix) { if (!Object.prototype.hasOwnProperty.call(entry, key)) { continue; } - if (key === "displayTypeSignature") { + if (key === "displayTypeSignature" && entry.displayTypeSignature !== null) { const {type, mappedNames, whereClause} = await entry.displayTypeSignature; entry.displayType = arrayToCode(type);  | 
