removed to_vec calls

This commit is contained in:
Nicholas Ward 2021-08-31 10:23:19 -07:00
parent 485d4862ff
commit 260d4bd13c

View File

@ -354,25 +354,21 @@ impl<F: Field, const CHUNK_SIZE: usize> SimpleGenerator<F>
fn run_once(&self, witness: &PartialWitness<F>, out_buffer: &mut GeneratedValues<F>) {
let a1_values: Vec<_> = self
.a1
.to_vec()
.iter()
.map(|x| witness.get_target(*x))
.collect();
let a2_values: Vec<_> = self
.a2
.to_vec()
.iter()
.map(|x| witness.get_target(*x))
.collect();
let b1_values: Vec<_> = self
.b1
.to_vec()
.iter()
.map(|x| witness.get_target(*x))
.collect();
let b2_values: Vec<_> = self
.b2
.to_vec()
.iter()
.map(|x| witness.get_target(*x))
.collect();