diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2022-06-30 17:40:38 +0400 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2022-07-12 21:00:13 +0400 |
| commit | 2964d0a5332fb0fd4d2c056ee9b651215b99b027 (patch) | |
| tree | 9bd7566ca2d3cead03e04616d0d3c79d395bc11b /src/expr.rs | |
| parent | 45f4f6ccf7fbccd81db84f2a7ee7881884668ab2 (diff) | |
implement rustfmt formatting for `for<>` closure binders
Diffstat (limited to 'src/expr.rs')
| -rw-r--r-- | src/expr.rs | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/expr.rs b/src/expr.rs index e4cc93026f1..a7b73ba78c5 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -203,11 +203,17 @@ pub(crate) fn format_expr( Some("yield".to_string()) } } - ast::ExprKind::Closure(capture, ref is_async, movability, ref fn_decl, ref body, _) => { - closures::rewrite_closure( - capture, is_async, movability, fn_decl, body, expr.span, context, shape, - ) - } + ast::ExprKind::Closure( + ref binder, + capture, + ref is_async, + movability, + ref fn_decl, + ref body, + _, + ) => closures::rewrite_closure( + binder, capture, is_async, movability, fn_decl, body, expr.span, context, shape, + ), ast::ExprKind::Try(..) | ast::ExprKind::Field(..) | ast::ExprKind::MethodCall(..) |
