refactor: remove unnecessary variables
This commit is contained in:
parent
3955dc3480
commit
fea1c5f5c8
17 changed files with 93 additions and 108 deletions
|
@ -906,7 +906,8 @@ impl<'a, 'tcx> MirBorrowckCtxt<'a, 'tcx> {
|
|||
if let hir::ExprKind::Closure(hir::Closure {
|
||||
capture_clause: hir::CaptureBy::Ref,
|
||||
..
|
||||
}) = arg.kind {
|
||||
}) = arg.kind
|
||||
{
|
||||
closure_span = Some(arg.span.shrink_to_lo());
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue