diff --git a/libafl_cc/src/cfg.rs b/libafl_cc/src/cfg.rs index 0551bb8b97..8e53ced783 100644 --- a/libafl_cc/src/cfg.rs +++ b/libafl_cc/src/cfg.rs @@ -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, |¤t| new_distance < current); + .get(successor).is_none_or(|¤t| new_distance < current); if is_shorter { distances.insert(*successor, new_distance);