@@ -116,7 +116,7 @@ pub(crate) fn format_expr(
116116 rewrite_struct_lit (
117117 context,
118118 path,
119- qself. as_ref ( ) ,
119+ qself,
120120 fields,
121121 rest,
122122 & expr. attrs ,
@@ -169,7 +169,7 @@ pub(crate) fn format_expr(
169169 rewrite_match ( context, cond, arms, shape, expr. span , & expr. attrs )
170170 }
171171 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)
173173 }
174174 ast:: ExprKind :: Assign ( ref lhs, ref rhs, _) => {
175175 rewrite_assignment ( context, lhs, rhs, None , shape)
@@ -203,16 +203,16 @@ pub(crate) fn format_expr(
203203 Some ( "yield" . to_string ( ) )
204204 }
205205 }
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,
216216 ) ,
217217 ast:: ExprKind :: Try ( ..)
218218 | ast:: ExprKind :: Field ( ..)
@@ -1537,7 +1537,7 @@ fn struct_lit_can_be_aligned(fields: &[ast::ExprField], has_base: bool) -> bool
15371537fn rewrite_struct_lit < ' a > (
15381538 context : & RewriteContext < ' _ > ,
15391539 path : & ast:: Path ,
1540- qself : Option < & ast:: QSelf > ,
1540+ qself : & Option < ptr :: P < ast:: QSelf > > ,
15411541 fields : & ' a [ ast:: ExprField ] ,
15421542 struct_rest : & ast:: StructRest ,
15431543 attrs : & [ ast:: Attribute ] ,
0 commit comments