Skip to content

Commit 940758b

Browse files
committed
Cargo fmt
1 parent dff2ebb commit 940758b

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/items.rs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -544,14 +544,12 @@ impl<'a> FmtVisitor<'a> {
544544
let span = mk_sp(lo, field.span.lo());
545545

546546
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+
)?,
555553
ast::VariantData::Unit(..) => if let Some(ref expr) = field.node.disr_expr {
556554
let lhs = format!("{} =", field.node.name);
557555
rewrite_assign_rhs(&context, lhs, &**expr, shape)?

0 commit comments

Comments
 (0)