1
Fork 0

Fix invalid handling of generics

This commit is contained in:
Guillaume Gomez 2021-08-23 22:19:43 +02:00
parent f2707fec04
commit 355e6eddfe
7 changed files with 147 additions and 93 deletions

View file

@ -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!(),
}
}