Update src/core/executor.rs

Co-authored-by: Paul Masurel <paul@quickwit.io>
This commit is contained in:
PSeitz
2022-05-04 08:39:44 +02:00
committed by GitHub
parent 4db655ae82
commit a1afc80600

View File

@@ -49,7 +49,6 @@ impl Executor {
match self {
Executor::SingleThread => args.map(f).collect::<crate::Result<_>>(),
Executor::ThreadPool(pool) => {
// let args_with_indices: Vec<(usize, A)> = args.enumerate().collect();
let args: Vec<A> = args.collect();
let num_fruits = args.len();
let fruit_receiver = {