diff --git a/bls12_381/src/g1.rs b/bls12_381/src/g1.rs index 2798ef6d0..b6ac706fe 100644 --- a/bls12_381/src/g1.rs +++ b/bls12_381/src/g1.rs @@ -823,6 +823,7 @@ fn test_is_on_curve() { } #[test] +#[allow(clippy::eq_op)] fn test_affine_point_equality() { let a = G1Affine::generator(); let b = G1Affine::identity(); @@ -834,6 +835,7 @@ fn test_affine_point_equality() { } #[test] +#[allow(clippy::eq_op)] fn test_projective_point_equality() { let a = G1Projective::generator(); let b = G1Projective::identity(); @@ -1224,6 +1226,7 @@ fn test_mixed_addition() { } #[test] +#[allow(clippy::eq_op)] fn test_projective_negation_and_subtraction() { let a = G1Projective::generator().double(); assert_eq!(a + (-a), G1Projective::identity()); diff --git a/bls12_381/src/g2.rs b/bls12_381/src/g2.rs index 277cfb94d..63b4cf757 100644 --- a/bls12_381/src/g2.rs +++ b/bls12_381/src/g2.rs @@ -925,6 +925,7 @@ fn test_is_on_curve() { } #[test] +#[allow(clippy::eq_op)] fn test_affine_point_equality() { let a = G2Affine::generator(); let b = G2Affine::identity(); @@ -936,6 +937,7 @@ fn test_affine_point_equality() { } #[test] +#[allow(clippy::eq_op)] fn test_projective_point_equality() { let a = G2Projective::generator(); let b = G2Projective::identity(); @@ -1452,6 +1454,7 @@ fn test_mixed_addition() { } #[test] +#[allow(clippy::eq_op)] fn test_projective_negation_and_subtraction() { let a = G2Projective::generator().double(); assert_eq!(a + (-a), G2Projective::identity());