Add missing description in alias items
This commit is contained in:
parent
e81b59bba8
commit
8c80124fef
1 changed files with 3 additions and 3 deletions
|
@ -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),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue