Skip to content

Commit 65624d9

Browse files
committed
tester.js: ignore displayTypeSignature if it is null
1 parent 74b7599 commit 65624d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/tools/rustdoc-js/tester.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ function loadSearchJS(doc_folder, resource_suffix) {
451451
if (!Object.prototype.hasOwnProperty.call(entry, key)) {
452452
continue;
453453
}
454-
if (key === "displayTypeSignature") {
454+
if (key === "displayTypeSignature" && entry.displayTypeSignature !== null) {
455455
const {type, mappedNames, whereClause} =
456456
await entry.displayTypeSignature;
457457
entry.displayType = arrayToCode(type);

0 commit comments

Comments
 (0)