about summary refs log tree commit diff
path: root/src/expr.rs
diff options
context:
space:
mode:
authorCaleb Cartwright <caleb.cartwright@outlook.com>2021-03-28 17:30:53 -0500
committerCaleb Cartwright <calebcartwright@users.noreply.github.com>2021-04-02 23:21:06 -0500
commitc32f2ec0153d364041eb0f7267210741ce7ca275 (patch)
tree1a5f9a756dbbe43649f94b053f86e41d0264b678 /src/expr.rs
parent49489116081f2a90ef2f51f04cf0048fbc1504a7 (diff)
chore: fmt and cleanup
Diffstat (limited to 'src/expr.rs')
-rw-r--r--src/expr.rs12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/expr.rs b/src/expr.rs
index 1befea9c805..d3fd22653b4 100644
--- a/src/expr.rs
+++ b/src/expr.rs
@@ -107,16 +107,8 @@ pub(crate) fn format_expr(
         }
         ast::ExprKind::Unary(op, ref subexpr) => rewrite_unary_op(context, op, subexpr, shape),
         ast::ExprKind::Struct(ref struct_expr) => {
-            let ast::StructExpr { ref fields, ref path, ref rest } = **struct_expr;
-            rewrite_struct_lit(
-                context,
-                path,
-                fields,
-                rest,
-                &expr.attrs,
-                expr.span,
-                shape,
-            )
+            let ast::StructExpr { fields, path, rest } = &**struct_expr;
+            rewrite_struct_lit(context, path, fields, rest, &expr.attrs, expr.span, shape)
         }
         ast::ExprKind::Tup(ref items) => {
             rewrite_tuple(context, items.iter(), expr.span, shape, items.len() == 1)