Skip to content

Commit 36396c6

Browse files
committed
Fix tests
1 parent d48d247 commit 36396c6

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

Diff for: clippy_lints/src/methods/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2319,7 +2319,7 @@ fn check_methods<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>, msrv: Optio
23192319
("is_file", []) => filetype_is_file::check(cx, expr, recv),
23202320
("is_none", []) => check_is_some_is_none(cx, expr, recv, false),
23212321
("is_some", []) => check_is_some_is_none(cx, expr, recv, true),
2322-
("last" | "skip", args @ []) => {
2322+
("last", args @ []) | ("skip", args @ [_]) => {
23232323
if let Some((name2, [recv2, args2 @ ..], _span2)) = method_call(recv) {
23242324
if let ("cloned", []) = (name2, args2) {
23252325
iter_overeager_cloned::check(cx, expr, recv2, name, args);

0 commit comments

Comments
 (0)