Skip to content

Commit 60937bf

Browse files
:adjust applicability for typed identity closures in filter_map_identity
1 parent 9655231 commit 60937bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/methods/filter_map_identity.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ fn is_identity(cx: &LateContext<'_>, expr: &hir::Expr<'_>) -> Option<Applicabili
1212
return Some(Applicability::MachineApplicable);
1313
}
1414
if is_expr_identity_function(cx, expr) {
15-
return Some(Applicability::MaybeIncorrect);
15+
return Some(Applicability::Unspecified);
1616
}
1717
None
1818
}

0 commit comments

Comments
 (0)