1
Fork 0

Fix union fields display

This commit is contained in:
Guillaume Gomez 2023-06-21 17:25:19 +02:00
parent 6fc0273b5a
commit 6f48526963
4 changed files with 11 additions and 11 deletions

View file

@ -421,11 +421,10 @@ fn document<'a, 'cx: 'a>(
display_fn(move |f| {
document_item_info(cx, item, parent).render_into(f).unwrap();
if parent.is_none() {
write!(f, "{}", document_full_collapsible(item, cx, heading_offset))?;
write!(f, "{}", document_full_collapsible(item, cx, heading_offset))
} else {
write!(f, "{}", document_full(item, cx, heading_offset))?;
write!(f, "{}", document_full(item, cx, heading_offset))
}
Ok(())
})
}