Fixes for rayon 1.0
This commit is contained in:
@@ -123,7 +123,7 @@ fn criterion_benchmark(c: &mut Criterion) {
|
|||||||
fitness: None,
|
fitness: None,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.collect_into(population);
|
.collect_into_vec(population);
|
||||||
|
|
||||||
// Add all parents again.
|
// Add all parents again.
|
||||||
population.extend(parents.iter().cloned());
|
population.extend(parents.iter().cloned());
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ fn main() {
|
|||||||
fitness: None,
|
fitness: None,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.collect_into(population);
|
.collect_into_vec(population);
|
||||||
|
|
||||||
// Add all parents again.
|
// Add all parents again.
|
||||||
population.extend(parents.iter().cloned());
|
population.extend(parents.iter().cloned());
|
||||||
|
|||||||
Reference in New Issue
Block a user