limit coverage file search depth

pull/10758/head
Dustin Lagoy 2025-04-07 12:26:13 -07:00
parent c142d85f71
commit 623e5de848
1 changed files with 1 additions and 0 deletions

View File

@ -115,6 +115,7 @@ fn find_coverage_file() -> Option<std::path::PathBuf> {
return Some(std::path::PathBuf::from(coverage_path)); return Some(std::path::PathBuf::from(coverage_path));
} }
for entry in walkdir::WalkDir::new(".") for entry in walkdir::WalkDir::new(".")
.max_depth(1)
.into_iter() .into_iter()
.filter_map(|e| e.ok()) .filter_map(|e| e.ok())
{ {