Skip to content

Commit e2f59f4

Browse files
ManishearthJoshua Nelson
andcommitted
Update src/librustdoc/html/render/print_item.rs
Co-authored-by: Joshua Nelson <[email protected]>
1 parent 256e594 commit e2f59f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/render/print_item.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1363,7 +1363,7 @@ fn render_struct(
13631363
w.write_str(" {");
13641364
let count_fields = fields
13651365
.iter()
1366-
.filter(|f| if let clean::StructFieldItem(..) = *f.kind { true } else { false })
1366+
.filter(|f| matches!(clean::StructFieldItem(..) = *f.kind))
13671367
.count();
13681368
let has_visible_fields = count_fields > 0;
13691369
let toggle = should_hide_fields(count_fields);

0 commit comments

Comments
 (0)