Skip to content

Commit e9d52e3

Browse files
committed
search.js: displayTypeSignature should default to undef, not null
this is because tester.js iterates over the keys of each ResultObject.
1 parent 74b7599 commit e9d52e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: src/librustdoc/html/static/js/rustdoc.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ declare namespace rustdoc {
257257
ty: number,
258258
type?: FunctionSearchType,
259259
paramNames?: string[],
260-
displayTypeSignature: Promise<rustdoc.DisplayTypeSignature> | null,
260+
displayTypeSignature: Promise<rustdoc.DisplayTypeSignature> | undefined,
261261
item: Row,
262262
dontValidate?: boolean,
263263
}

Diff for: src/librustdoc/html/static/js/search.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2793,7 +2793,7 @@ class DocSearch {
27932793
displayPath: pathSplitter(res[0]),
27942794
fullPath: "",
27952795
href: "",
2796-
displayTypeSignature: null,
2796+
displayTypeSignature: undefined,
27972797
}, this.searchIndex[result.id]);
27982798

27992799
// To be sure than it some items aren't considered as duplicate.

0 commit comments

Comments
 (0)