about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2021-04-12 11:41:01 -0700
committerManish Goregaokar <manishsmail@gmail.com>2021-04-12 11:41:01 -0700
commit01afa07fef09e60a979d582b52a62d94154369f5 (patch)
treeeab0fae13d652f02aefe20cd9afe6988b8e353a2
parent8e9882dbc4ed51a957c8abb0993f52f8b9f3ea26 (diff)
downloadrust-01afa07fef09e60a979d582b52a62d94154369f5.tar.gz
rust-01afa07fef09e60a979d582b52a62d94154369f5.zip
should_hide_fields > 12
-rw-r--r--src/librustdoc/html/render/print_item.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/librustdoc/html/render/print_item.rs b/src/librustdoc/html/render/print_item.rs
index fec97d3ea55..f6cce28ea2b 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) {