1
Fork 0

Add missing description in alias items

This commit is contained in:
Guillaume Gomez 2018-04-26 22:27:12 +02:00
parent e81b59bba8
commit 8c80124fef

View file

@ -879,8 +879,8 @@ themePicker.onclick = function() {{
} }
fn show_item(item: &IndexItem, krate: &str) -> String { fn show_item(item: &IndexItem, krate: &str) -> String {
format!("{{'crate':'{}','ty':{},'name':'{}','path':'{}'{}}}", format!("{{'crate':'{}','ty':{},'name':'{}','desc':'{}','path':'{}'{}}}",
krate, item.ty as usize, item.name, item.path, krate, item.ty as usize, item.name, item.desc, item.path,
if let Some(p) = item.parent_idx { if let Some(p) = item.parent_idx {
format!(",'parent':{}", p) format!(",'parent':{}", p)
} else { } else {
@ -1442,7 +1442,7 @@ impl<'a> Cache {
ty: item.type_(), ty: item.type_(),
name: item_name.to_string(), name: item_name.to_string(),
path: path.clone(), path: path.clone(),
desc: String::new(), desc: plain_summary_line(item.doc_value()),
parent: None, parent: None,
parent_idx: None, parent_idx: None,
search_type: get_index_search_type(&item), search_type: get_index_search_type(&item),