Skip to content

Commit c939c57

Browse files
authored
Remove redundant method.ident.as_str() == "enumerate" check
1 parent a327ac9 commit c939c57

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

clippy_lints/src/loops/unused_enumerate_index.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, pat: &'tcx Pat<'_>, arg: &'tcx
1818
return;
1919
};
2020

21-
if method.ident.as_str() != "enumerate" {
22-
return;
23-
}
24-
2521
let ty = cx.typeck_results().expr_ty(arg);
2622

2723
if !pat_is_wild(cx, &tuple[0].kind, body) {

0 commit comments

Comments
 (0)