@@ -848,10 +848,10 @@ impl Eq for RistrettoPoint {}
848
848
// Arithmetic
849
849
// ------------------------------------------------------------------------
850
850
851
- impl < ' a , ' b > Add < & ' b RistrettoPoint > for & ' a RistrettoPoint {
851
+ impl < ' a > Add < & ' a RistrettoPoint > for & RistrettoPoint {
852
852
type Output = RistrettoPoint ;
853
853
854
- fn add ( self , other : & ' b RistrettoPoint ) -> RistrettoPoint {
854
+ fn add ( self , other : & ' a RistrettoPoint ) -> RistrettoPoint {
855
855
RistrettoPoint ( self . 0 + other. 0 )
856
856
}
857
857
}
@@ -862,18 +862,18 @@ define_add_variants!(
862
862
Output = RistrettoPoint
863
863
) ;
864
864
865
- impl < ' b > AddAssign < & ' b RistrettoPoint > for RistrettoPoint {
865
+ impl AddAssign < & RistrettoPoint > for RistrettoPoint {
866
866
fn add_assign ( & mut self , _rhs : & RistrettoPoint ) {
867
867
* self = ( self as & RistrettoPoint ) + _rhs;
868
868
}
869
869
}
870
870
871
871
define_add_assign_variants ! ( LHS = RistrettoPoint , RHS = RistrettoPoint ) ;
872
872
873
- impl < ' a , ' b > Sub < & ' b RistrettoPoint > for & ' a RistrettoPoint {
873
+ impl < ' a > Sub < & ' a RistrettoPoint > for & RistrettoPoint {
874
874
type Output = RistrettoPoint ;
875
875
876
- fn sub ( self , other : & ' b RistrettoPoint ) -> RistrettoPoint {
876
+ fn sub ( self , other : & ' a RistrettoPoint ) -> RistrettoPoint {
877
877
RistrettoPoint ( self . 0 - other. 0 )
878
878
}
879
879
}
@@ -884,7 +884,7 @@ define_sub_variants!(
884
884
Output = RistrettoPoint
885
885
) ;
886
886
887
- impl < ' b > SubAssign < & ' b RistrettoPoint > for RistrettoPoint {
887
+ impl SubAssign < & RistrettoPoint > for RistrettoPoint {
888
888
fn sub_assign ( & mut self , _rhs : & RistrettoPoint ) {
889
889
* self = ( self as & RistrettoPoint ) - _rhs;
890
890
}
@@ -904,7 +904,7 @@ where
904
904
}
905
905
}
906
906
907
- impl < ' a > Neg for & ' a RistrettoPoint {
907
+ impl Neg for & RistrettoPoint {
908
908
type Output = RistrettoPoint ;
909
909
910
910
fn neg ( self ) -> RistrettoPoint {
@@ -920,26 +920,26 @@ impl Neg for RistrettoPoint {
920
920
}
921
921
}
922
922
923
- impl < ' b > MulAssign < & ' b Scalar > for RistrettoPoint {
924
- fn mul_assign ( & mut self , scalar : & ' b Scalar ) {
923
+ impl < ' a > MulAssign < & ' a Scalar > for RistrettoPoint {
924
+ fn mul_assign ( & mut self , scalar : & ' a Scalar ) {
925
925
let result = ( self as & RistrettoPoint ) * scalar;
926
926
* self = result;
927
927
}
928
928
}
929
929
930
- impl < ' a , ' b > Mul < & ' b Scalar > for & ' a RistrettoPoint {
930
+ impl < ' a > Mul < & ' a Scalar > for & RistrettoPoint {
931
931
type Output = RistrettoPoint ;
932
932
/// Scalar multiplication: compute `scalar * self`.
933
- fn mul ( self , scalar : & ' b Scalar ) -> RistrettoPoint {
933
+ fn mul ( self , scalar : & ' a Scalar ) -> RistrettoPoint {
934
934
RistrettoPoint ( self . 0 * scalar)
935
935
}
936
936
}
937
937
938
- impl < ' a , ' b > Mul < & ' b RistrettoPoint > for & ' a Scalar {
938
+ impl < ' a > Mul < & ' a RistrettoPoint > for & Scalar {
939
939
type Output = RistrettoPoint ;
940
940
941
941
/// Scalar multiplication: compute `self * scalar`.
942
- fn mul ( self , point : & ' b RistrettoPoint ) -> RistrettoPoint {
942
+ fn mul ( self , point : & ' a RistrettoPoint ) -> RistrettoPoint {
943
943
RistrettoPoint ( self * point. 0 )
944
944
}
945
945
}
@@ -1093,7 +1093,7 @@ impl RistrettoPoint {
1093
1093
pub struct RistrettoBasepointTable ( pub ( crate ) EdwardsBasepointTable ) ;
1094
1094
1095
1095
#[ cfg( feature = "precomputed-tables" ) ]
1096
- impl < ' a , ' b > Mul < & ' b Scalar > for & ' a RistrettoBasepointTable {
1096
+ impl < ' b > Mul < & ' b Scalar > for & RistrettoBasepointTable {
1097
1097
type Output = RistrettoPoint ;
1098
1098
1099
1099
fn mul ( self , scalar : & ' b Scalar ) -> RistrettoPoint {
@@ -1102,7 +1102,7 @@ impl<'a, 'b> Mul<&'b Scalar> for &'a RistrettoBasepointTable {
1102
1102
}
1103
1103
1104
1104
#[ cfg( feature = "precomputed-tables" ) ]
1105
- impl < ' a , ' b > Mul < & ' a RistrettoBasepointTable > for & ' b Scalar {
1105
+ impl < ' a > Mul < & ' a RistrettoBasepointTable > for & Scalar {
1106
1106
type Output = RistrettoPoint ;
1107
1107
1108
1108
fn mul ( self , basepoint_table : & ' a RistrettoBasepointTable ) -> RistrettoPoint {
0 commit comments