:adjust applicability for typed identity closures in filter_map_identity

This commit is contained in:
Quinn Sinclair 2024-03-26 18:59:09 +01:00
parent 9655231eb8
commit 60937bf2db

View File

@ -12,7 +12,7 @@ fn is_identity(cx: &LateContext<'_>, expr: &hir::Expr<'_>) -> Option<Applicabili
return Some(Applicability::MachineApplicable); return Some(Applicability::MachineApplicable);
} }
if is_expr_identity_function(cx, expr) { if is_expr_identity_function(cx, expr) {
return Some(Applicability::MaybeIncorrect); return Some(Applicability::Unspecified);
} }
None None
} }