mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-05-22 09:49:26 +00:00
Clippy
This commit is contained in:
parent
1915ef9b27
commit
b5b2ef9f3e
@ -74,7 +74,7 @@ impl<F: Extendable<D>, const D: usize> Tree<GateRef<F, D>> {
|
|||||||
// Iterate backwards from `max_degree` to try to find a tree with a lower degree
|
// Iterate backwards from `max_degree` to try to find a tree with a lower degree
|
||||||
// but the same number of constants.
|
// but the same number of constants.
|
||||||
'optdegree: for degree in (0..max_degree).rev() {
|
'optdegree: for degree in (0..max_degree).rev() {
|
||||||
if let Some(mut tree) = Self::find_tree(&gates, degree, max_constants) {
|
if let Some(tree) = Self::find_tree(&gates, degree, max_constants) {
|
||||||
let num_constants = tree.num_constants();
|
let num_constants = tree.num_constants();
|
||||||
if num_constants > best_num_constants {
|
if num_constants > best_num_constants {
|
||||||
break 'optdegree;
|
break 'optdegree;
|
||||||
|
|||||||
@ -9,7 +9,7 @@ use crate::gates::gate::{GateRef, PrefixedGate};
|
|||||||
use crate::polynomial::commitment::SALT_SIZE;
|
use crate::polynomial::commitment::SALT_SIZE;
|
||||||
use crate::polynomial::polynomial::PolynomialCoeffs;
|
use crate::polynomial::polynomial::PolynomialCoeffs;
|
||||||
use crate::target::Target;
|
use crate::target::Target;
|
||||||
use crate::util::partial_products::{check_partial_products, partial_products};
|
use crate::util::partial_products::check_partial_products;
|
||||||
use crate::vars::{EvaluationTargets, EvaluationVars, EvaluationVarsBase};
|
use crate::vars::{EvaluationTargets, EvaluationVars, EvaluationVarsBase};
|
||||||
|
|
||||||
/// Holds the Merkle tree index and blinding flag of a set of polynomials used in FRI.
|
/// Holds the Merkle tree index and blinding flag of a set of polynomials used in FRI.
|
||||||
|
|||||||
@ -13,7 +13,7 @@ use crate::polynomial::polynomial::{PolynomialCoeffs, PolynomialValues};
|
|||||||
use crate::proof::Proof;
|
use crate::proof::Proof;
|
||||||
use crate::timed;
|
use crate::timed;
|
||||||
use crate::util::partial_products::partial_products;
|
use crate::util::partial_products::partial_products;
|
||||||
use crate::util::{ceil_div_usize, log2_ceil, transpose};
|
use crate::util::{log2_ceil, transpose};
|
||||||
use crate::vars::EvaluationVarsBase;
|
use crate::vars::EvaluationVarsBase;
|
||||||
use crate::witness::{PartialWitness, Witness};
|
use crate::witness::{PartialWitness, Witness};
|
||||||
|
|
||||||
|
|||||||
@ -13,7 +13,6 @@ pub(crate) fn verify<F: Extendable<D>, const D: usize>(
|
|||||||
common_data: &CommonCircuitData<F, D>,
|
common_data: &CommonCircuitData<F, D>,
|
||||||
) -> Result<()> {
|
) -> Result<()> {
|
||||||
let config = &common_data.config;
|
let config = &common_data.config;
|
||||||
let fri_config = &config.fri_config;
|
|
||||||
let num_challenges = config.num_challenges;
|
let num_challenges = config.num_challenges;
|
||||||
|
|
||||||
let mut challenger = Challenger::new();
|
let mut challenger = Challenger::new();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user