From 00c846a1564755fc0903e93eb634e0896152a138 Mon Sep 17 00:00:00 2001 From: Mrmaxmeier Date: Tue, 17 Dec 2024 14:52:25 +0100 Subject: [PATCH] libafl_cc: apply clippy suggestion --- libafl_cc/src/cfg.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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);