mirror of
https://github.com/trailofbits/circomspect.git
synced 2026-01-09 13:58:03 -05:00
reformat code after clippy changes
This commit is contained in:
@@ -39,8 +39,7 @@ pub fn sub(left: &BigInt, right: &BigInt, field: &BigInt) -> BigInt {
|
||||
modulus(&(left - right), field)
|
||||
}
|
||||
pub fn div(left: &BigInt, right: &BigInt, field: &BigInt) -> Result<BigInt, ArithmeticError> {
|
||||
let right_inverse =
|
||||
right.mod_inverse(field).ok_or(ArithmeticError::DivisionByZero)?;
|
||||
let right_inverse = right.mod_inverse(field).ok_or(ArithmeticError::DivisionByZero)?;
|
||||
let res = mul(left, &right_inverse, field);
|
||||
Ok(res)
|
||||
}
|
||||
|
||||
@@ -28,9 +28,7 @@ impl Ord for Degree {
|
||||
match (self, other) {
|
||||
// `Constant <= _`
|
||||
(Constant, Constant) => Ordering::Equal,
|
||||
(Constant, Linear) | (Constant, Quadratic) | (Constant, NonQuadratic) => {
|
||||
Ordering::Less
|
||||
}
|
||||
(Constant, Linear) | (Constant, Quadratic) | (Constant, NonQuadratic) => Ordering::Less,
|
||||
// `Linear <= _`
|
||||
(Linear, Linear) => Ordering::Equal,
|
||||
(Linear, Quadratic) | (Linear, NonQuadratic) => Ordering::Less,
|
||||
|
||||
Reference in New Issue
Block a user