Skip to content

Commit 5b42686

Browse files
committed
Remove unneeded field pattern, tip from dogfood test
1 parent 01b1360 commit 5b42686

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/get_last_with_len.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UseLast {
6060

6161
// Argument to "get" is a subtraction
6262
if let Some(get_index_arg) = args.get(1);
63-
if let ExprKind::Binary(Spanned{node: BinOpKind::Sub, span: _},
63+
if let ExprKind::Binary(Spanned{node: BinOpKind::Sub, ..},
6464
lhs, rhs) = &get_index_arg.node;
6565

6666
// LHS of subtraction is "x.len()"

0 commit comments

Comments
 (0)