Fix union fields display
This commit is contained in:
parent
6fc0273b5a
commit
6f48526963
4 changed files with 11 additions and 11 deletions
|
@ -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(())
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue