Skip to content

Commit 099f111

Browse files
committed
Pass through vec
1 parent 77e8f0e commit 099f111

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

crates/bins/src/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ pub fn secret_analysis(
281281
.into_par_iter()
282282
.fold(
283283
|| (Vec::new(), HashMap::new()),
284-
|(_, mut path_metadata), path| {
284+
|(mut fold_results, mut path_metadata), path| {
285285
let relative_path = path
286286
.strip_prefix(directory_path)
287287
.expect("cannot strip prefix from path")
@@ -327,7 +327,9 @@ pub fn secret_analysis(
327327
if let Some(pb) = &progress_bar {
328328
pb.inc(1);
329329
}
330-
(res, path_metadata)
330+
fold_results.extend(res);
331+
332+
(fold_results, path_metadata)
331333
},
332334
)
333335
.reduce(

0 commit comments

Comments
 (0)