From de30a4d2a27114c032a8994188c5b950a7a3c9fb Mon Sep 17 00:00:00 2001 From: Alex Kuzmin Date: Fri, 19 Apr 2024 14:53:25 +0800 Subject: [PATCH] Fix code review findings --- prover/benches/proof_of_liabilities.rs | 4 ++-- prover/src/circuits/summa_circuit.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/prover/benches/proof_of_liabilities.rs b/prover/benches/proof_of_liabilities.rs index b60fe012..b47d2075 100644 --- a/prover/benches/proof_of_liabilities.rs +++ b/prover/benches/proof_of_liabilities.rs @@ -28,7 +28,7 @@ fn bench_summa() let halo2_circuit = SummaHyperplonk::::init(entries.to_vec()); let circuit = Halo2Circuit::>::new::( - 17, + K as usize, halo2_circuit.clone(), ); @@ -54,7 +54,7 @@ fn bench_summa() b.iter_batched( || { Halo2Circuit::>::new::( - 17, + K as usize, halo2_circuit.clone(), ) }, diff --git a/prover/src/circuits/summa_circuit.rs b/prover/src/circuits/summa_circuit.rs index 2263e342..2fd17cae 100644 --- a/prover/src/circuits/summa_circuit.rs +++ b/prover/src/circuits/summa_circuit.rs @@ -202,7 +202,7 @@ pub mod summa_hyperplonk { assigned_balances.push(assigned_balances_row); } - Ok((assigned_balances, last_assigned_running_sums.clone())) + Ok((assigned_balances, last_assigned_running_sums)) }, ) .unwrap();