mirror of
https://github.com/sharkdp/fd.git
synced 2026-08-31 01:15:43 +08:00
fix: Remove unnecessary collection into a vec.
This commit is contained in:
+1
-4
@@ -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)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user