File tree 2 files changed +4
-9
lines changed
curves/curve-constraint-tests/src
2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ pub mod fields {
21
21
AllocationMode :: Constant ,
22
22
] ;
23
23
for & mode in & modes {
24
- let cs = ConstraintSystem :: < ConstraintF > :: new_ref ( ) ;
24
+ let cs = ConstraintSystem :: new_ref ( ) ;
25
25
26
26
let mut rng = test_rng ( ) ;
27
27
let a_native = F :: rand ( & mut rng) ;
@@ -152,10 +152,7 @@ pub mod fields {
152
152
for c in & mut constants {
153
153
* c = UniformRand :: rand ( & mut test_rng ( ) ) ;
154
154
}
155
- let bits = [
156
- Boolean :: < ConstraintF > :: constant ( false ) ,
157
- Boolean :: constant ( true ) ,
158
- ] ;
155
+ let bits = [ Boolean :: constant ( false ) , Boolean :: constant ( true ) ] ;
159
156
let lookup_result = AF :: two_bit_lookup ( & bits, constants. as_ref ( ) ) ?;
160
157
assert_eq ! ( lookup_result. value( ) ?, constants[ 2 ] ) ;
161
158
assert ! ( cs. is_satisfied( ) . unwrap( ) ) ;
Original file line number Diff line number Diff line change @@ -333,12 +333,10 @@ impl<P: Pairing> Mul<P::ScalarField> for MillerLoopOutput<P> {
333
333
334
334
/// Preprocesses a G1 element for use in a pairing.
335
335
pub fn prepare_g1 < E : Pairing > ( g : impl Into < E :: G1Affine > ) -> E :: G1Prepared {
336
- let g: E :: G1Affine = g. into ( ) ;
337
- E :: G1Prepared :: from ( g)
336
+ E :: G1Prepared :: from ( g. into ( ) )
338
337
}
339
338
340
339
/// Preprocesses a G2 element for use in a pairing.
341
340
pub fn prepare_g2 < E : Pairing > ( g : impl Into < E :: G2Affine > ) -> E :: G2Prepared {
342
- let g: E :: G2Affine = g. into ( ) ;
343
- E :: G2Prepared :: from ( g)
341
+ E :: G2Prepared :: from ( g. into ( ) )
344
342
}
You can’t perform that action at this time.
0 commit comments