@@ -60,12 +60,12 @@ impl<E: ExtensionField, PCS: PolynomialCommitmentScheme<E>> ZKVMVerifier<E, PCS>
60
60
transcript : Transcript < E > ,
61
61
does_halt : bool ,
62
62
) -> 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.
64
64
let num_instances = vm_proof
65
65
. opcode_proofs
66
66
. get ( & HaltInstruction :: < E > :: name ( ) )
67
67
. map ( |( _, p) | p. num_instances )
68
- . unwrap_or ( 0 ) ;
68
+ . unwrap_or_default ( ) ;
69
69
if num_instances != ( does_halt as usize ) {
70
70
return Err ( ZKVMError :: VerifyError ( format ! (
71
71
"ecall/halt num_instances={}, expected={}" ,
@@ -117,12 +117,12 @@ impl<E: ExtensionField, PCS: PolynomialCommitmentScheme<E>> ZKVMVerifier<E, PCS>
117
117
}
118
118
}
119
119
120
- for ( name, ( _, proof) ) in vm_proof. opcode_proofs . iter ( ) {
120
+ for ( name, ( _, proof) ) in & vm_proof. opcode_proofs {
121
121
tracing:: debug!( "read {}'s commit" , name) ;
122
122
PCS :: write_commitment ( & proof. wits_commit , & mut transcript)
123
123
. map_err ( ZKVMError :: PCSError ) ?;
124
124
}
125
- for ( name, ( _, proof) ) in vm_proof. table_proofs . iter ( ) {
125
+ for ( name, ( _, proof) ) in & vm_proof. table_proofs {
126
126
tracing:: debug!( "read {}'s commit" , name) ;
127
127
PCS :: write_commitment ( & proof. wits_commit , & mut transcript)
128
128
. map_err ( ZKVMError :: PCSError ) ?;
0 commit comments