1
Fork 0

End of rework of Attributes struct

This commit is contained in:
Guillaume Gomez 2020-12-19 15:04:42 +01:00
parent c4739bc920
commit 122b141f58
11 changed files with 145 additions and 136 deletions

View file

@ -314,9 +314,10 @@ impl DocFolder for Cache {
ty: item.type_(),
name: s.to_string(),
path: path.join("::"),
desc: item
.doc_value()
.map_or_else(|| String::new(), short_markdown_summary),
desc: item.doc_value().map_or_else(
|| String::new(),
|x| short_markdown_summary(&x.as_str()),
),
parent,
parent_idx: None,
search_type: get_index_search_type(&item),