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 651302e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libafl_cc/src/cfg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ where
let new_distance = distance + successor_info.get_weight();
let is_shorter = distances
.get(successor)
.map_or(true, |&current| new_distance < current);
.is_none_or(|&current| new_distance < current);

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

0 comments on commit 651302e

Please sign in to comment.