diff --git a/executor/src/witgen/identity_processor.rs b/executor/src/witgen/identity_processor.rs index fcb723292..96f559751 100644 --- a/executor/src/witgen/identity_processor.rs +++ b/executor/src/witgen/identity_processor.rs @@ -168,15 +168,10 @@ impl<'a, 'b, 'c, T: FieldElement, Q: QueryCallback> IdentityProcessor<'a, 'b, } } - let left = identity - .left - .expressions - .iter() - .map(|e| rows.evaluate(e)) - .collect::>(); + let left = identity.left.expressions.iter().map(|e| rows.evaluate(e)); // Fail if the LHS has an error. - let (left, errors): (Vec<_>, Vec<_>) = left.into_iter().partition_map(|x| match x { + let (left, errors): (Vec<_>, Vec<_>) = left.partition_map(|x| match x { Ok(x) => Either::Left(x), Err(x) => Either::Right(x), });