diff options
| author | wcampbell <wcampbell1995@gmail.com> | 2022-08-03 00:00:04 -0400 |
|---|---|---|
| committer | wcampbell <wcampbell1995@gmail.com> | 2022-08-04 07:16:39 -0400 |
| commit | 8dd44f1af4ac49331d0998eebae21d54b0ab5bde (patch) | |
| tree | ff97c2a7b2515a8c0ee4121960a93ef997ce19f6 /compiler/rustc_borrowck/src | |
| parent | c9e134e1b609e571f4d7d18f91f0ccb1a0cb685d (diff) | |
Enable unused_parens for match arms
Diffstat (limited to 'compiler/rustc_borrowck/src')
| -rw-r--r-- | compiler/rustc_borrowck/src/diagnostics/region_name.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_borrowck/src/diagnostics/region_name.rs b/compiler/rustc_borrowck/src/diagnostics/region_name.rs index f68358ecfe6..a87e8bd5ba1 100644 --- a/compiler/rustc_borrowck/src/diagnostics/region_name.rs +++ b/compiler/rustc_borrowck/src/diagnostics/region_name.rs @@ -839,7 +839,7 @@ impl<'tcx> MirBorrowckCtxt<'_, 'tcx> { hir::Node::Expr(hir::Expr { kind: hir::ExprKind::Closure(&hir::Closure { fn_decl_span, .. }), .. - }) => (tcx.sess.source_map().end_point(fn_decl_span)), + }) => tcx.sess.source_map().end_point(fn_decl_span), _ => self.body.span, }; |
