From 01afa07fef09e60a979d582b52a62d94154369f5 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Mon, 12 Apr 2021 11:41:01 -0700 Subject: [PATCH] should_hide_fields > 12 --- src/librustdoc/html/render/print_item.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/librustdoc/html/render/print_item.rs b/src/librustdoc/html/render/print_item.rs index fec97d3ea551..f6cce28ea2bd 100644 --- a/src/librustdoc/html/render/print_item.rs +++ b/src/librustdoc/html/render/print_item.rs @@ -133,8 +133,7 @@ pub(super) fn print_item(cx: &Context<'_>, item: &clean::Item, buf: &mut Buffer) /// For large structs, enums, unions, etc, determine whether to hide their fields fn should_hide_fields(n_fields: usize) -> bool { - // todo: figure out what this should be - n_fields > 5 + n_fields > 12 } fn toggle_open(w: &mut Buffer, text: &str) {