1
Fork 0

Put back, fix ()-output optimization

This commit is contained in:
Michael Howell 2022-06-27 11:07:45 -07:00
parent 8081096a7f
commit 6f9a460fef
2 changed files with 2 additions and 1 deletions

View file

@ -170,6 +170,7 @@ impl Serialize for IndexItemFunctionType {
_ => seq.serialize_element(&self.inputs)?,
}
match &self.output[..] {
[] => {}
[one] if one.generics.is_none() => seq.serialize_element(one)?,
_ => seq.serialize_element(&self.output)?,
}