:adjust applicability for typed identity closures in filter_map_identity
This commit is contained in:
parent
9655231eb8
commit
60937bf2db
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user