Skip to content

Commit 5271580

Browse files
committed
Minor refactoring
1 parent ba92f3a commit 5271580

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/methods/map_with_unused_argument_over_ranges.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use rustc_ast::ast::RangeLimits;
77
use rustc_ast::LitKind;
88
use rustc_data_structures::packed::Pu128;
99
use rustc_errors::Applicability;
10-
use rustc_hir::{Body, Closure, Expr, ExprKind, PatKind};
10+
use rustc_hir::{Body, Closure, Expr, ExprKind};
1111
use rustc_lint::LateContext;
1212
use rustc_span::Span;
1313

@@ -69,7 +69,7 @@ pub(super) fn check(
6969
}
7070
let mut applicability = Applicability::MaybeIncorrect;
7171
if let Some(range) = higher::Range::hir(receiver)
72-
&& let ExprKind::Closure(Closure { body, fn_decl_span, .. }) = arg.kind
72+
&& let ExprKind::Closure(Closure { body, .. }) = arg.kind
7373
&& let body_hir = cx.tcx.hir().body(*body)
7474
&& let Body {
7575
params: [param],

0 commit comments

Comments
 (0)