diff --git a/ot/mpz-ot-core/src/ideal/ideal_spcot.rs b/ot/mpz-ot-core/src/ideal/ideal_spcot.rs index 9d70adae..06c0777b 100644 --- a/ot/mpz-ot-core/src/ideal/ideal_spcot.rs +++ b/ot/mpz-ot-core/src/ideal/ideal_spcot.rs @@ -93,11 +93,10 @@ impl IdealSpcot { v[*p as usize] ^= self.delta; }); - let res = v.iter().zip(w.iter()).all(|(v,w)|{ - v.iter().zip(w.iter()).all(|(x,y)|{ - *x == *y - }) - }); + let res = v + .iter() + .zip(w.iter()) + .all(|(v, w)| v.iter().zip(w.iter()).all(|(x, y)| *x == *y)); res } }