diff --git a/halo2-ecc/src/bls12_381/pairing.rs b/halo2-ecc/src/bls12_381/pairing.rs index 39e08ed6..b46ebf57 100644 --- a/halo2-ecc/src/bls12_381/pairing.rs +++ b/halo2-ecc/src/bls12_381/pairing.rs @@ -429,7 +429,7 @@ impl<'chip, F: BigPrimeField> PairingChip<'chip, F> { ) -> FqPoint { let mml = self.multi_miller_loop(ctx, pairs.to_vec()); let fp12_chip = Fp12Chip::::new(self.fp_chip); - let fe = fp12_chip.final_exp(ctx, mml.clone()); + let fe = fp12_chip.final_exp(ctx, mml); fe } diff --git a/halo2-ecc/src/ecc/hash_to_curve.rs b/halo2-ecc/src/ecc/hash_to_curve.rs index 998c465e..7791d27c 100644 --- a/halo2-ecc/src/ecc/hash_to_curve.rs +++ b/halo2-ecc/src/ecc/hash_to_curve.rs @@ -162,8 +162,8 @@ pub trait HashToCurveInstructions< let x_frob = self.field_chip().conjugate(ctx, p.x); let y_frob = self.field_chip().conjugate(ctx, p.y); - let x = self.field_chip().mul(ctx, x_frob, psi_x.clone()); - let y = self.field_chip().mul(ctx, y_frob, psi_y.clone()); + let x = self.field_chip().mul(ctx, x_frob, psi_x); + let y = self.field_chip().mul(ctx, y_frob, psi_y); EcPoint::new(x, y) } @@ -177,7 +177,7 @@ pub trait HashToCurveInstructions< // 1 / 2 ^ ((q-1)/3) let psi2_x = self.field_chip().load_constant(ctx, C::PSI2_X); - let x = self.field_chip().mul(ctx, p.x, psi2_x.clone()); + let x = self.field_chip().mul(ctx, p.x, psi2_x); let y = self.field_chip().negate(ctx, p.y); EcPoint::new(x, y)