mirror of
https://github.com/arnaucube/Nova.git
synced 2026-01-11 00:21:29 +01:00
Clippy formatting (#131)
* Clippy with Rust 1.67 * Clippy/Rustfmt with Rust 1.66.1
This commit is contained in:
@@ -38,7 +38,7 @@ fn bench_compressed_snark(c: &mut Criterion) {
|
||||
// number of constraints in the step circuit
|
||||
let num_cons = num_cons_in_augmented_circuit - num_cons_verifier_circuit_primary;
|
||||
|
||||
let mut group = c.benchmark_group(format!("CompressedSNARK-StepCircuitSize-{}", num_cons));
|
||||
let mut group = c.benchmark_group(format!("CompressedSNARK-StepCircuitSize-{num_cons}"));
|
||||
group.sample_size(num_samples);
|
||||
|
||||
// Produce public parameters
|
||||
@@ -143,7 +143,7 @@ where
|
||||
let mut x = z[0].clone();
|
||||
let mut y = x.clone();
|
||||
for i in 0..self.num_cons {
|
||||
y = x.square(cs.namespace(|| format!("x_sq_{}", i)))?;
|
||||
y = x.square(cs.namespace(|| format!("x_sq_{i}")))?;
|
||||
x = y.clone();
|
||||
}
|
||||
Ok(vec![y])
|
||||
|
||||
@@ -35,7 +35,7 @@ fn bench_recursive_snark(c: &mut Criterion) {
|
||||
// number of constraints in the step circuit
|
||||
let num_cons = num_cons_in_augmented_circuit - num_cons_verifier_circuit_primary;
|
||||
|
||||
let mut group = c.benchmark_group(format!("RecursiveSNARK-StepCircuitSize-{}", num_cons));
|
||||
let mut group = c.benchmark_group(format!("RecursiveSNARK-StepCircuitSize-{num_cons}"));
|
||||
group.sample_size(10);
|
||||
|
||||
// Produce public parameters
|
||||
@@ -144,7 +144,7 @@ where
|
||||
let mut x = z[0].clone();
|
||||
let mut y = x.clone();
|
||||
for i in 0..self.num_cons {
|
||||
y = x.square(cs.namespace(|| format!("x_sq_{}", i)))?;
|
||||
y = x.square(cs.namespace(|| format!("x_sq_{i}")))?;
|
||||
x = y.clone();
|
||||
}
|
||||
Ok(vec![y])
|
||||
|
||||
Reference in New Issue
Block a user