Skip to content

Commit

Permalink
libafl_cc: apply clippy suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrmaxmeier committed Dec 17, 2024
1 parent 913cfa3 commit 00c846a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libafl_cc/src/cfg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,7 @@ where
self.get_edge(*successor).expect("unknown successor added");
let new_distance = distance + successor_info.get_weight();
let is_shorter = distances
.get(successor)
.map_or(true, |&current| new_distance < current);
.get(successor).is_none_or(|&current| new_distance < current);

if is_shorter {
distances.insert(*successor, new_distance);
Expand Down

0 comments on commit 00c846a

Please sign in to comment.