Skip to content

Commit 01afa07

Browse files
committed
should_hide_fields > 12
1 parent 8e9882d commit 01afa07

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/librustdoc/html/render/print_item.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,7 @@ pub(super) fn print_item(cx: &Context<'_>, item: &clean::Item, buf: &mut Buffer)
133133

134134
/// For large structs, enums, unions, etc, determine whether to hide their fields
135135
fn should_hide_fields(n_fields: usize) -> bool {
136-
// todo: figure out what this should be
137-
n_fields > 5
136+
n_fields > 12
138137
}
139138

140139
fn toggle_open(w: &mut Buffer, text: &str) {

0 commit comments

Comments
 (0)