diff --git a/libafl_cc/src/cfg.rs b/libafl_cc/src/cfg.rs index 0551bb8b97..49789f3c5c 100644 --- a/libafl_cc/src/cfg.rs +++ b/libafl_cc/src/cfg.rs @@ -317,7 +317,7 @@ where let new_distance = distance + successor_info.get_weight(); let is_shorter = distances .get(successor) - .map_or(true, |¤t| new_distance < current); + .is_none_or(|¤t| new_distance < current); if is_shorter { distances.insert(*successor, new_distance);