diff --git a/src/plonk/circuit.rs b/src/plonk/circuit.rs index 3e74d7d..3e8c71f 100644 --- a/src/plonk/circuit.rs +++ b/src/plonk/circuit.rs @@ -7,7 +7,7 @@ use std::{ }; use super::{lookup, permutation, Error}; -use crate::{arithmetic::FieldExt, poly::Rotation}; +use crate::poly::Rotation; /// A column type pub trait ColumnType: 'static + Sized {} @@ -319,7 +319,7 @@ impl Expression { } } -impl Neg for Expression { +impl Neg for Expression { type Output = Expression; fn neg(self) -> Self::Output { Expression::Scaled(Box::new(self), -F::one()) @@ -333,7 +333,7 @@ impl Add for Expression { } } -impl Sub for Expression { +impl Sub for Expression { type Output = Expression; fn sub(self, rhs: Expression) -> Expression { Expression::Sum(Box::new(self), Box::new(-rhs))