Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Mason Liang committed Nov 7, 2023
1 parent 4eb7f15 commit b433de5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/gadgets/mpt_update/assign.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ impl MptUpdateConfig {
}
};
self.assign_storage(region, next_offset, &proof.storage, randomness);
return proof.n_rows();
proof.n_rows()
}

// Valid assignment proving that the address 0 doesn't exist in an empty MPT.
Expand Down
4 changes: 2 additions & 2 deletions src/mpt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ impl MptCircuitConfig {
) -> Result<(), Error> {
let randomness = self.rlc_randomness.value(layouter);

let proofs_vec: Vec<_> = proofs.iter().cloned().collect();
layouter.assign_regions(
|| "mpt circuit parallel assignment 1",
self.mpt_update.assignments(proofs_vec, n_rows, randomness),
self.mpt_update
.assignments(proofs.to_vec(), n_rows, randomness),
)?;

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

0 comments on commit b433de5

Please sign in to comment.