diff --git a/benches/parabole.rs b/benches/parabole.rs index 7abb201..7f67e8f 100644 --- a/benches/parabole.rs +++ b/benches/parabole.rs @@ -123,7 +123,7 @@ fn criterion_benchmark(c: &mut Criterion) { fitness: None, } }) - .collect_into(population); + .collect_into_vec(population); // Add all parents again. population.extend(parents.iter().cloned()); diff --git a/examples/parabole.rs b/examples/parabole.rs index 4e94769..32950ab 100644 --- a/examples/parabole.rs +++ b/examples/parabole.rs @@ -109,7 +109,7 @@ fn main() { fitness: None, } }) - .collect_into(population); + .collect_into_vec(population); // Add all parents again. population.extend(parents.iter().cloned());