Skip to content

Commit 846a4e9

Browse files
ManishearthJoshua Nelson
and
Joshua Nelson
committed
Update src/librustdoc/html/render/print_item.rs
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
1 parent e2f59f4 commit 846a4e9

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
@@ -1306,7 +1306,7 @@ fn render_union(
13061306
write!(w, " {{\n{}", tab);
13071307
let count_fields = fields
13081308
.iter()
1309-
.filter(|f| if let clean::StructFieldItem(..) = *f.kind { true } else { false })
1309+
.filter(|f| matches!(clean::StructFieldItem(..), *f.kind))
13101310
.count();
13111311
let toggle = should_hide_fields(count_fields);
13121312
if toggle {

0 commit comments

Comments
 (0)