clippy::complexity fixes

filter_map_identity
 needless_bool
 search_is_some
 unit_arg
 map_identity
 needless_question_mark
 derivable_impls
This commit is contained in:
Matthias Krüger 2023-12-12 19:28:13 +01:00
parent 27d8a57713
commit d707461a1a
9 changed files with 14 additions and 33 deletions

View file

@ -649,7 +649,7 @@ impl OpportunitySet {
// `succ` must be a successor of `current`. If it is not, this means this TO is not
// satisfiable and a previous TO erased this edge, so we bail out.
if basic_blocks[current].terminator().successors().find(|s| *s == succ).is_none() {
if !basic_blocks[current].terminator().successors().any(|s| s == succ) {
debug!("impossible");
return;
}