diff --git a/src/gadgets/multiple_comparison.rs b/src/gadgets/multiple_comparison.rs index 6871c1b8..553fb49e 100644 --- a/src/gadgets/multiple_comparison.rs +++ b/src/gadgets/multiple_comparison.rs @@ -93,8 +93,18 @@ mod tests { .map(|_| rng.gen_range(0..(1 << num_bits))) .collect(); - let a_biguint = BigUint::from_slice(&lst1.iter().flat_map(|&x| [x as u32, (x >> 32) as u32]).collect::>()); - let b_biguint = BigUint::from_slice(&lst2.iter().flat_map(|&x| [x as u32, (x >> 32) as u32]).collect::>()); + let a_biguint = BigUint::from_slice( + &lst1 + .iter() + .flat_map(|&x| [x as u32, (x >> 32) as u32]) + .collect::>(), + ); + let b_biguint = BigUint::from_slice( + &lst2 + .iter() + .flat_map(|&x| [x as u32, (x >> 32) as u32]) + .collect::>(), + ); let a = lst1 .iter() diff --git a/src/gadgets/nonnative.rs b/src/gadgets/nonnative.rs index 9e7a9585..1d14f708 100644 --- a/src/gadgets/nonnative.rs +++ b/src/gadgets/nonnative.rs @@ -102,7 +102,10 @@ impl, const D: usize> CircuitBuilder { } } - fn reduce_nonnative(&mut self, x: &ForeignFieldTarget) -> ForeignFieldTarget { + fn reduce_nonnative( + &mut self, + x: &ForeignFieldTarget, + ) -> ForeignFieldTarget { let x_biguint = self.nonnative_to_biguint(x); self.reduce(&x_biguint) }