Skip to content

Commit 10122e4

Browse files
committed
Remove shadowed receiver in check invocation
1 parent d2087ad commit 10122e4

File tree

1 file changed

+1
-1
lines changed
  • clippy_lints/src/methods

1 file changed

+1
-1
lines changed

clippy_lints/src/methods/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2036,7 +2036,7 @@ impl<'tcx> LateLintPass<'tcx> for Methods {
20362036
fn check_methods<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>, msrv: Option<&RustcVersion>) {
20372037
if let Some((name, [recv, args @ ..], span)) = method_call!(expr) {
20382038
match (name, args) {
2039-
("add" | "offset" | "sub" | "wrapping_offset" | "wrapping_add" | "wrapping_sub", [recv, _]) => {
2039+
("add" | "offset" | "sub" | "wrapping_offset" | "wrapping_add" | "wrapping_sub", [_arg]) => {
20402040
zst_offset::check(cx, expr, recv);
20412041
},
20422042
("and_then", [arg]) => {

0 commit comments

Comments
 (0)