cargo fmt

This commit is contained in:
Sean Bowe
2019-12-12 11:46:05 -07:00
parent a4f7c4eef3
commit 96f602e452
3 changed files with 8 additions and 14 deletions

View File

@@ -429,7 +429,8 @@ impl ConstantTimeEq for G1Projective {
let other_is_zero = other.z.is_zero();
(self_is_zero & other_is_zero) // Both point at infinity
| ((!self_is_zero) & (!other_is_zero) & x1.ct_eq(&x2) & y1.ct_eq(&y2)) // Neither point at infinity, coordinates are the same
| ((!self_is_zero) & (!other_is_zero) & x1.ct_eq(&x2) & y1.ct_eq(&y2))
// Neither point at infinity, coordinates are the same
}
}

View File

@@ -501,7 +501,8 @@ impl ConstantTimeEq for G2Projective {
let other_is_zero = other.z.is_zero();
(self_is_zero & other_is_zero) // Both point at infinity
| ((!self_is_zero) & (!other_is_zero) & x1.ct_eq(&x2) & y1.ct_eq(&y2)) // Neither point at infinity, coordinates are the same
| ((!self_is_zero) & (!other_is_zero) & x1.ct_eq(&x2) & y1.ct_eq(&y2))
// Neither point at infinity, coordinates are the same
}
}