about summary refs log tree commit diff
path: root/compiler/rustc_borrowck/src
diff options
context:
space:
mode:
authorwcampbell <wcampbell1995@gmail.com>2022-08-03 00:00:04 -0400
committerwcampbell <wcampbell1995@gmail.com>2022-08-04 07:16:39 -0400
commit8dd44f1af4ac49331d0998eebae21d54b0ab5bde (patch)
treeff97c2a7b2515a8c0ee4121960a93ef997ce19f6 /compiler/rustc_borrowck/src
parentc9e134e1b609e571f4d7d18f91f0ccb1a0cb685d (diff)
Enable unused_parens for match arms
Diffstat (limited to 'compiler/rustc_borrowck/src')
-rw-r--r--compiler/rustc_borrowck/src/diagnostics/region_name.rs2
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,
         };