Give clearer names to several search index functions
This commit is contained in:
parent
afb77a959a
commit
5c8e8e565d
2 changed files with 26 additions and 14 deletions
|
@ -12,7 +12,7 @@ use crate::fold::DocFolder;
|
|||
use crate::formats::item_type::ItemType;
|
||||
use crate::formats::Impl;
|
||||
use crate::html::markdown::short_markdown_summary;
|
||||
use crate::html::render::search_index::get_index_search_type;
|
||||
use crate::html::render::search_index::get_function_type_for_search;
|
||||
use crate::html::render::IndexItem;
|
||||
|
||||
/// This cache is used to store information about the [`clean::Crate`] being
|
||||
|
@ -303,7 +303,7 @@ impl<'a, 'tcx> DocFolder for CacheBuilder<'a, 'tcx> {
|
|||
desc,
|
||||
parent,
|
||||
parent_idx: None,
|
||||
search_type: get_index_search_type(&item, self.tcx),
|
||||
search_type: get_function_type_for_search(&item, self.tcx),
|
||||
aliases: item.attrs.get_doc_aliases(),
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue