File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -544,14 +544,12 @@ impl<'a> FmtVisitor<'a> {
544
544
let span = mk_sp ( lo, field. span . lo ( ) ) ;
545
545
546
546
let variant_body = match field. node . data {
547
- ast:: VariantData :: Tuple ( ..) | ast:: VariantData :: Struct ( ..) => {
548
- format_struct (
549
- & context,
550
- & StructParts :: from_variant ( field) ,
551
- self . block_indent ,
552
- Some ( one_line_width) ,
553
- ) ?
554
- }
547
+ ast:: VariantData :: Tuple ( ..) | ast:: VariantData :: Struct ( ..) => format_struct (
548
+ & context,
549
+ & StructParts :: from_variant ( field) ,
550
+ self . block_indent ,
551
+ Some ( one_line_width) ,
552
+ ) ?,
555
553
ast:: VariantData :: Unit ( ..) => if let Some ( ref expr) = field. node . disr_expr {
556
554
let lhs = format ! ( "{} =" , field. node. name) ;
557
555
rewrite_assign_rhs ( & context, lhs, & * * expr, shape) ?
You can’t perform that action at this time.
0 commit comments