Fix invalid handling of generics
This commit is contained in:
parent
f2707fec04
commit
355e6eddfe
7 changed files with 147 additions and 93 deletions
|
@ -108,7 +108,7 @@ crate struct IndexItem {
|
|||
#[derive(Debug)]
|
||||
crate struct RenderType {
|
||||
name: Option<String>,
|
||||
generics: Option<Vec<String>>,
|
||||
generics: Option<Vec<TypeWithKind>>,
|
||||
}
|
||||
|
||||
/// Full type of functions/methods in the search index.
|
||||
|
@ -2387,6 +2387,7 @@ fn item_ty_to_strs(ty: ItemType) -> (&'static str, &'static str) {
|
|||
ItemType::ProcAttribute => ("attributes", "Attribute Macros"),
|
||||
ItemType::ProcDerive => ("derives", "Derive Macros"),
|
||||
ItemType::TraitAlias => ("trait-aliases", "Trait aliases"),
|
||||
ItemType::Generic => unreachable!(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue