@@ -116,7 +116,7 @@ pub(crate) fn format_expr(
116
116
rewrite_struct_lit (
117
117
context,
118
118
path,
119
- qself. as_ref ( ) ,
119
+ qself,
120
120
fields,
121
121
rest,
122
122
& expr. attrs ,
@@ -169,7 +169,7 @@ pub(crate) fn format_expr(
169
169
rewrite_match ( context, cond, arms, shape, expr. span , & expr. attrs )
170
170
}
171
171
ast:: ExprKind :: Path ( ref qself, ref path) => {
172
- rewrite_path ( context, PathContext :: Expr , qself. as_ref ( ) , path, shape)
172
+ rewrite_path ( context, PathContext :: Expr , qself, path, shape)
173
173
}
174
174
ast:: ExprKind :: Assign ( ref lhs, ref rhs, _) => {
175
175
rewrite_assignment ( context, lhs, rhs, None , shape)
@@ -203,16 +203,16 @@ pub(crate) fn format_expr(
203
203
Some ( "yield" . to_string ( ) )
204
204
}
205
205
}
206
- ast:: ExprKind :: Closure (
207
- ref binder,
208
- capture ,
209
- ref is_async ,
210
- movability,
211
- ref fn_decl,
212
- ref body,
213
- _ ,
214
- ) => closures :: rewrite_closure (
215
- binder , capture , is_async , movability , fn_decl , body , expr . span , context , shape,
206
+ ast:: ExprKind :: Closure ( ref cl ) => closures :: rewrite_closure (
207
+ & cl . binder ,
208
+ cl . capture_clause ,
209
+ & cl . asyncness ,
210
+ cl . movability ,
211
+ & cl . fn_decl ,
212
+ & cl . body ,
213
+ expr . span ,
214
+ context ,
215
+ shape,
216
216
) ,
217
217
ast:: ExprKind :: Try ( ..)
218
218
| ast:: ExprKind :: Field ( ..)
@@ -1537,7 +1537,7 @@ fn struct_lit_can_be_aligned(fields: &[ast::ExprField], has_base: bool) -> bool
1537
1537
fn rewrite_struct_lit < ' a > (
1538
1538
context : & RewriteContext < ' _ > ,
1539
1539
path : & ast:: Path ,
1540
- qself : Option < & ast:: QSelf > ,
1540
+ qself : & Option < ptr :: P < ast:: QSelf > > ,
1541
1541
fields : & ' a [ ast:: ExprField ] ,
1542
1542
struct_rest : & ast:: StructRest ,
1543
1543
attrs : & [ ast:: Attribute ] ,
0 commit comments