diff --git a/casr/src/bin/casr-libfuzzer.rs b/casr/src/bin/casr-libfuzzer.rs index 868befc7..c0ae4d8b 100644 --- a/casr/src/bin/casr-libfuzzer.rs +++ b/casr/src/bin/casr-libfuzzer.rs @@ -195,8 +195,7 @@ fn main() -> Result<()> { // Determine crash directory format for libfuzzer or LibAFL. let crash_filter = if crash_files .iter() - .find(|(fname, _)| fname.starts_with("crash-") || fname.starts_with("leak-")) - .is_some() + .any(|(fname, _)| fname.starts_with("crash-") || fname.starts_with("leak-")) { |arg: &(&std::string::String, &PathBuf)| { arg.0.starts_with("crash-") || arg.0.starts_with("leak-")