Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
moodlezoup committed Apr 18, 2024
1 parent 5337ac3 commit a2eca31
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions jolt-core/src/r1cs/snark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,22 +254,12 @@ impl<'a, F: PrimeField> R1CSInputs<'a, F> {
chunks.par_extend(
self.memreg_v_reads
.par_chunks(padded_trace_len)
.map(|chunk| {
chunk
.par_iter()
.map(|&elem| elem.clone())
.collect::<Vec<F>>()
}),
.map(|chunk| chunk.par_iter().map(|&elem| *elem).collect::<Vec<F>>()),
);
chunks.par_extend(
self.memreg_v_writes
.par_chunks(padded_trace_len)
.map(|chunk| {
chunk
.par_iter()
.map(|&elem| elem.clone())
.collect::<Vec<F>>()
}),
.map(|chunk| chunk.par_iter().map(|&elem| *elem).collect::<Vec<F>>()),
);
chunks.par_extend(
self.chunks_x
Expand Down

0 comments on commit a2eca31

Please sign in to comment.