Skip to content

Commit f9b2f11

Browse files
chore: fmt
1 parent 686bee8 commit f9b2f11

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

src/formatting/expr.rs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -106,16 +106,8 @@ pub(crate) fn format_expr(
106106
}
107107
ast::ExprKind::Unary(op, ref subexpr) => rewrite_unary_op(context, op, subexpr, shape),
108108
ast::ExprKind::Struct(ref struct_expr) => {
109-
let ast::StructExpr { ref fields, ref path, ref rest } = **struct_expr;
110-
rewrite_struct_lit(
111-
context,
112-
path,
113-
fields,
114-
rest,
115-
&expr.attrs,
116-
expr.span,
117-
shape,
118-
)
109+
let ast::StructExpr { fields, path, rest } = &**struct_expr;
110+
rewrite_struct_lit(context, path, fields, rest, &expr.attrs, expr.span, shape)
119111
}
120112
ast::ExprKind::Tup(ref items) => {
121113
rewrite_tuple(context, items.iter(), expr.span, shape, items.len() == 1)

src/formatting/patterns.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use rustc_ast::ast::{self, BindingMode, PatField, Pat, PatKind, RangeEnd, RangeSyntax};
1+
use rustc_ast::ast::{self, BindingMode, Pat, PatField, PatKind, RangeEnd, RangeSyntax};
22
use rustc_ast::ptr;
33
use rustc_span::{BytePos, Span};
44

0 commit comments

Comments
 (0)