Skip to content

Commit 032d82a

Browse files
Clean up
1 parent b49288d commit 032d82a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ceno_zkvm/src/scheme/prover.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1241,7 +1241,7 @@ impl TowerProver {
12411241
virtual_polys.add_mle_list(vec![&eq, &q1, &q2], *alpha_denominator);
12421242
}
12431243
}
1244-
tracing::debug!("generated tower proof at round {}/{}", round, max_round_index);
1244+
tracing::debug!("generated tower proof at round {round}/{max_round_index}");
12451245

12461246
let wrap_batch_span = entered_span!("wrap_batch");
12471247
// NOTE: at the time of adding this span, visualizing it with the flamegraph layer

ceno_zkvm/src/scheme/verifier.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ impl<E: ExtensionField, PCS: PolynomialCommitmentScheme<E>> ZKVMVerifier<E, PCS>
6060
transcript: Transcript<E>,
6161
does_halt: bool,
6262
) -> Result<bool, ZKVMError> {
63-
// require ecall/halt proof to exist, depending whether we expect a halt.
63+
// require ecall/halt proof to exist, depending on whether we expect a halt.
6464
let num_instances = vm_proof
6565
.opcode_proofs
6666
.get(&HaltInstruction::<E>::name())
6767
.map(|(_, p)| p.num_instances)
68-
.unwrap_or(0);
68+
.unwrap_or_default();
6969
if num_instances != (does_halt as usize) {
7070
return Err(ZKVMError::VerifyError(format!(
7171
"ecall/halt num_instances={}, expected={}",
@@ -117,12 +117,12 @@ impl<E: ExtensionField, PCS: PolynomialCommitmentScheme<E>> ZKVMVerifier<E, PCS>
117117
}
118118
}
119119

120-
for (name, (_, proof)) in vm_proof.opcode_proofs.iter() {
120+
for (name, (_, proof)) in &vm_proof.opcode_proofs {
121121
tracing::debug!("read {}'s commit", name);
122122
PCS::write_commitment(&proof.wits_commit, &mut transcript)
123123
.map_err(ZKVMError::PCSError)?;
124124
}
125-
for (name, (_, proof)) in vm_proof.table_proofs.iter() {
125+
for (name, (_, proof)) in &vm_proof.table_proofs {
126126
tracing::debug!("read {}'s commit", name);
127127
PCS::write_commitment(&proof.wits_commit, &mut transcript)
128128
.map_err(ZKVMError::PCSError)?;

0 commit comments

Comments
 (0)