1
Fork 0

Make 'docs' optional

This commit is contained in:
Rune Tynan 2021-01-20 15:58:03 -05:00
parent a4cbb44ae2
commit 76511a7a71
No known key found for this signature in database
GPG key ID: 7ECC932F8B2C731E
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@ impl JsonRenderer<'_> {
name: name.map(|sym| sym.to_string()),
source: self.convert_span(source),
visibility: self.convert_visibility(visibility),
docs: attrs.collapsed_doc_value().unwrap_or_default(),
docs: attrs.collapsed_doc_value(),
links: attrs
.links
.into_iter()