mirror of https://github.com/zcash/halo2.git
halo2_proofs: Fix clippy lints
This commit is contained in:
parent
f0861db20b
commit
5641a64d3c
|
@ -102,7 +102,7 @@ impl FromStr for Poly {
|
|||
|
||||
#[derive(Debug)]
|
||||
struct Lookup {
|
||||
columns: usize,
|
||||
_columns: usize,
|
||||
input_deg: usize,
|
||||
table_deg: usize,
|
||||
}
|
||||
|
@ -112,11 +112,11 @@ impl FromStr for Lookup {
|
|||
|
||||
fn from_str(s: &str) -> Result<Self, Self::Err> {
|
||||
let mut parts = s.split(',');
|
||||
let columns = parts.next().unwrap().parse()?;
|
||||
let _columns = parts.next().unwrap().parse()?;
|
||||
let input_deg = parts.next().unwrap().parse()?;
|
||||
let table_deg = parts.next().unwrap().parse()?;
|
||||
Ok(Lookup {
|
||||
columns,
|
||||
_columns,
|
||||
input_deg,
|
||||
table_deg,
|
||||
})
|
||||
|
|
|
@ -195,7 +195,7 @@ impl<'a, F: Field, B: Basis> Add<&'a Polynomial<F, B>> for Polynomial<F, B> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a, F: Field> Polynomial<F, LagrangeCoeff> {
|
||||
impl<F: Field> Polynomial<F, LagrangeCoeff> {
|
||||
/// Rotates the values in a Lagrange basis polynomial by `Rotation`
|
||||
pub fn rotate(&self, rotation: Rotation) -> Polynomial<F, LagrangeCoeff> {
|
||||
let mut values = self.values.clone();
|
||||
|
@ -211,7 +211,7 @@ impl<'a, F: Field> Polynomial<F, LagrangeCoeff> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a, F: Field, B: Basis> Mul<F> for Polynomial<F, B> {
|
||||
impl<F: Field, B: Basis> Mul<F> for Polynomial<F, B> {
|
||||
type Output = Polynomial<F, B>;
|
||||
|
||||
fn mul(mut self, rhs: F) -> Polynomial<F, B> {
|
||||
|
|
|
@ -390,7 +390,7 @@ impl<G: Group> EvaluationDomain<G> {
|
|||
} else {
|
||||
point *= &self
|
||||
.get_omega_inv()
|
||||
.pow_vartime(&[(rotation.0 as i64).abs() as u64]);
|
||||
.pow_vartime(&[(rotation.0 as i64).unsigned_abs()]);
|
||||
}
|
||||
point
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue