Add missing "Aliased type" title in the sidebar

This commit is contained in:
Guillaume Gomez 2023-09-11 14:17:20 +02:00
parent 5d62ab8981
commit 7468af8d66

View File

@ -237,6 +237,7 @@ fn sidebar_type_alias<'a>(
) -> Vec<LinkBlock<'a>> {
let mut items = vec![];
if let Some(inner_type) = &t.inner_type {
items.push(LinkBlock::forced(Link::new("aliased-type", "Aliased type")));
match inner_type {
clean::TypeAliasInnerType::Enum { variants, is_non_exhaustive: _ } => {
let mut variants = variants