Skip to content

Commit 1f0c7ba

Browse files
committed
Check if there are files which are not direct childs of the source directory in parallel
1 parent eb0360e commit 1f0c7ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/path_rewriting.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ pub fn rewrite_paths(
264264
// If all covered paths are direct childs of the source directory, then that function will
265265
// do nothing, and we don't have to do its pre-requisite data gathering.
266266
if has_java {
267-
map_partial_path_needed = result_map.keys().any(|path| {
267+
map_partial_path_needed = result_map.par_iter().any(|(path, _result)| {
268268
let mut path = Path::new(path);
269269
if let Some(prefix) = &prefix_dir {
270270
path = path.strip_prefix(prefix).unwrap_or(path);

0 commit comments

Comments
 (0)