Skip to content

Commit e2a47d1

Browse files
committed
tidy
1 parent 90c69c8 commit e2a47d1

File tree

1 file changed

+5
-1
lines changed
  • compiler/rustc_hir_typeck/src

1 file changed

+5
-1
lines changed

compiler/rustc_hir_typeck/src/pat.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2053,7 +2053,11 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
20532053
.iter()
20542054
.map(|(_, name)| {
20552055
let field_name = name.to_string();
2056-
if is_number(&field_name) { format!("{}: _", field_name) } else { field_name }
2056+
if is_number(&field_name) {
2057+
format!("{}: _", field_name)
2058+
} else {
2059+
field_name
2060+
}
20572061
})
20582062
.collect::<Vec<_>>()
20592063
.join(", "),

0 commit comments

Comments
 (0)