Skip to content

Commit 5c548d7

Browse files
committed
fix clippy
1 parent f43e419 commit 5c548d7

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/backends/plonky2/recursion/circuit.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,8 @@ fn coset_interpolation_gate(
314314
/// with all these standard gates is about 400 num_gates (rows), no matter the circuit size.
315315
fn standard_gates(config: &CircuitConfig) -> Vec<GateRef<F, D>> {
316316
let nnf_mul_simple =
317-
GateAdapter::<NNFMulSimple<5, QuinticExtension<F>>>::new_from_config(&config);
318-
let ec_add_homog = GateAdapter::<ECAddHomog>::new_from_config(&config);
317+
GateAdapter::<NNFMulSimple<5, QuinticExtension<F>>>::new_from_config(config);
318+
let ec_add_homog = GateAdapter::<ECAddHomog>::new_from_config(config);
319319
vec![
320320
GateRef::new(plonky2::gates::noop::NoopGate {}),
321321
GateRef::new(plonky2::gates::constant::ConstantGate::new(
@@ -334,17 +334,17 @@ fn standard_gates(config: &CircuitConfig) -> Vec<GateRef<F, D>> {
334334
GateRef::new(
335335
plonky2::gates::multiplication_extension::MulExtensionGate::new_from_config(config),
336336
),
337-
GateRef::new(plonky2::gates::random_access::RandomAccessGate::new_from_config(&config, 1)),
338-
GateRef::new(plonky2::gates::random_access::RandomAccessGate::new_from_config(&config, 2)),
339-
GateRef::new(plonky2::gates::random_access::RandomAccessGate::new_from_config(&config, 3)),
340-
GateRef::new(plonky2::gates::random_access::RandomAccessGate::new_from_config(&config, 4)),
341-
GateRef::new(plonky2::gates::random_access::RandomAccessGate::new_from_config(&config, 5)),
342-
GateRef::new(plonky2::gates::random_access::RandomAccessGate::new_from_config(&config, 6)),
337+
GateRef::new(plonky2::gates::random_access::RandomAccessGate::new_from_config(config, 1)),
338+
GateRef::new(plonky2::gates::random_access::RandomAccessGate::new_from_config(config, 2)),
339+
GateRef::new(plonky2::gates::random_access::RandomAccessGate::new_from_config(config, 3)),
340+
GateRef::new(plonky2::gates::random_access::RandomAccessGate::new_from_config(config, 4)),
341+
GateRef::new(plonky2::gates::random_access::RandomAccessGate::new_from_config(config, 5)),
342+
GateRef::new(plonky2::gates::random_access::RandomAccessGate::new_from_config(config, 6)),
343343
GateRef::new(nnf_mul_simple.recursive_gate()),
344344
GateRef::new(nnf_mul_simple),
345345
GateRef::new(ec_add_homog.recursive_gate()),
346346
GateRef::new(ec_add_homog),
347-
GateRef::new(plonky2::gates::exponentiation::ExponentiationGate::new_from_config(&config)),
347+
GateRef::new(plonky2::gates::exponentiation::ExponentiationGate::new_from_config(config)),
348348
// It would be better do `CosetInterpolationGate::with_max_degree(4, 6)` but unfortunately
349349
// that plonk2 method is `pub(crate)`, so we need to get around that somehow.
350350
GateRef::new(coset_interpolation_gate(
@@ -390,7 +390,7 @@ fn estimate_gates_after_zk(degree_bits: usize) -> usize {
390390
match degree_bits {
391391
0..=12 => 1 << 14,
392392
13 => 1 << 15,
393-
n => 1 << n + 1,
393+
n => 1 << (n + 1),
394394
}
395395
}
396396

0 commit comments

Comments
 (0)