Skip to content

Commit b433de5

Browse files
author
Mason Liang
committed
fix clippy
1 parent 4eb7f15 commit b433de5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/gadgets/mpt_update/assign.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ impl MptUpdateConfig {
254254
}
255255
};
256256
self.assign_storage(region, next_offset, &proof.storage, randomness);
257-
return proof.n_rows();
257+
proof.n_rows()
258258
}
259259

260260
// Valid assignment proving that the address 0 doesn't exist in an empty MPT.

src/mpt.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,10 @@ impl MptCircuitConfig {
122122
) -> Result<(), Error> {
123123
let randomness = self.rlc_randomness.value(layouter);
124124

125-
let proofs_vec: Vec<_> = proofs.iter().cloned().collect();
126125
layouter.assign_regions(
127126
|| "mpt circuit parallel assignment 1",
128-
self.mpt_update.assignments(proofs_vec, n_rows, randomness),
127+
self.mpt_update
128+
.assignments(proofs.to_vec(), n_rows, randomness),
129129
)?;
130130

131131
let (u32s, u64s, u128s, frs) = byte_representations(proofs);

0 commit comments

Comments
 (0)