@@ -32,11 +32,11 @@ pub trait Source<G: PrimeCurveAffine> {
3232
3333pub trait AddAssignFromSource : PrimeCurve {
3434 /// Parses the element from the source. Fails if the point is at infinity.
35- fn add_assign_from_source < S : Source < < Self as PrimeCurve > :: Affine > > (
35+ fn add_assign_from_source < S : Source < Self :: Affine > > (
3636 & mut self ,
3737 source : & mut S ,
3838 ) -> Result < ( ) , SynthesisError > {
39- AddAssign :: < & < Self as PrimeCurve > :: Affine > :: add_assign ( self , source. next ( ) ?) ;
39+ AddAssign :: < & Self :: Affine > :: add_assign ( self , source. next ( ) ?) ;
4040 Ok ( ( ) )
4141 }
4242}
@@ -218,7 +218,7 @@ where
218218 D : Send + Sync + ' static + Clone + AsRef < Q > ,
219219 G : PrimeCurve ,
220220 G :: Scalar : PrimeFieldBits ,
221- S : SourceBuilder < < G as PrimeCurve > :: Affine > ,
221+ S : SourceBuilder < G :: Affine > ,
222222{
223223 // Perform this region of the multiexp
224224 let this = move |bases : S ,
@@ -313,7 +313,7 @@ where
313313 D : Send + Sync + ' static + Clone + AsRef < Q > ,
314314 G : PrimeCurve ,
315315 G :: Scalar : PrimeFieldBits ,
316- S : SourceBuilder < < G as PrimeCurve > :: Affine > ,
316+ S : SourceBuilder < G :: Affine > ,
317317{
318318 let c = if exponents. len ( ) < 32 {
319319 3u32
@@ -335,7 +335,7 @@ where
335335#[ test]
336336fn test_with_bls12 ( ) {
337337 fn naive_multiexp < G : PrimeCurve > (
338- bases : Arc < Vec < < G as PrimeCurve > :: Affine > > ,
338+ bases : Arc < Vec < G :: Affine > > ,
339339 exponents : Arc < Vec < G :: Scalar > > ,
340340 ) -> G {
341341 assert_eq ! ( bases. len( ) , exponents. len( ) ) ;
0 commit comments