mirror of https://github.com/sharkdp/fd.git
fix: Remove unnecessary collection into a vec.
This commit is contained in:
parent
ccf8e69650
commit
424d6efcc0
|
@ -361,10 +361,7 @@ fn spawn_receiver(
|
|||
// Push the handle of the spawned thread into the vector for later joining.
|
||||
handles.push(handle);
|
||||
}
|
||||
let exit_codes = handles
|
||||
.into_iter()
|
||||
.map(|handle| handle.join().unwrap())
|
||||
.collect::<Vec<_>>();
|
||||
let exit_codes = handles.into_iter().map(|handle| handle.join().unwrap());
|
||||
merge_exitcodes(exit_codes)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue