We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8081096 commit 6f9a460Copy full SHA for 6f9a460
src/librustdoc/html/render/mod.rs
@@ -170,6 +170,7 @@ impl Serialize for IndexItemFunctionType {
170
_ => seq.serialize_element(&self.inputs)?,
171
}
172
match &self.output[..] {
173
+ [] => {}
174
[one] if one.generics.is_none() => seq.serialize_element(one)?,
175
_ => seq.serialize_element(&self.output)?,
176
src/librustdoc/html/static/js/search.js
@@ -1910,7 +1910,7 @@ function initSearch(rawSearchIndex) {
1910
output = buildItemSearchTypeAll(functionSearchType[OUTPUT_DATA], lowercasePaths);
1911
1912
} else {
1913
- output = null;
+ output = [];
1914
1915
return {
1916
inputs, output,
0 commit comments