@@ -199,9 +199,9 @@ impl ProverClient {
199199 /// stdin.write(&10usize);
200200 ///
201201 /// // Execute the program on the inputs.
202- /// let (public_values, report) = client.execute(elf, stdin).run().unwrap();
202+ /// let (public_values, report) = client.execute(elf, & stdin).run().unwrap();
203203 /// ```
204- pub fn execute < ' a > ( & ' a self , elf : & ' a [ u8 ] , stdin : ZKMStdin ) -> action:: Execute < ' a > {
204+ pub fn execute < ' a > ( & ' a self , elf : & ' a [ u8 ] , stdin : & ' a ZKMStdin ) -> action:: Execute < ' a > {
205205 action:: Execute :: new ( self . prover . as_ref ( ) , elf, stdin)
206206 }
207207
@@ -397,7 +397,7 @@ mod tests {
397397 let elf = test_artifacts:: FIBONACCI_ELF ;
398398 let mut stdin = ZKMStdin :: new ( ) ;
399399 stdin. write ( & 10usize ) ;
400- let ( _, _report) = client. execute ( elf, stdin) . run ( ) . unwrap ( ) ;
400+ let ( _, _report) = client. execute ( elf, & stdin) . run ( ) . unwrap ( ) ;
401401 // tracing::info!("gas = {}", report.estimate_gas());
402402 }
403403
@@ -409,7 +409,7 @@ mod tests {
409409 let elf = test_artifacts:: PANIC_ELF ;
410410 let mut stdin = ZKMStdin :: new ( ) ;
411411 stdin. write ( & 10usize ) ;
412- client. execute ( elf, stdin) . run ( ) . unwrap ( ) ;
412+ client. execute ( elf, & stdin) . run ( ) . unwrap ( ) ;
413413 }
414414
415415 #[ should_panic]
@@ -420,7 +420,7 @@ mod tests {
420420 let elf = test_artifacts:: PANIC_ELF ;
421421 let mut stdin = ZKMStdin :: new ( ) ;
422422 stdin. write ( & 10usize ) ;
423- client. execute ( elf, stdin) . max_cycles ( 1 ) . run ( ) . unwrap ( ) ;
423+ client. execute ( elf, & stdin) . max_cycles ( 1 ) . run ( ) . unwrap ( ) ;
424424 }
425425
426426 #[ test]
0 commit comments