@@ -93,36 +93,6 @@ impl From<NonIdentity<AffinePoint>> for AffinePoint {
9393 }
9494}
9595
96- impl Mul < DecafScalar > for AffinePoint {
97- type Output = DecafPoint ;
98-
99- #[ inline]
100- #[ expect( clippy:: op_ref, reason = "false-positive" ) ]
101- fn mul ( self , scalar : DecafScalar ) -> DecafPoint {
102- & self * scalar
103- }
104- }
105-
106- #[ allow( clippy:: op_ref) ] // https://github.com/rust-lang/rust-clippy/issues/12463
107- impl Mul < DecafScalar > for & AffinePoint {
108- type Output = DecafPoint ;
109-
110- #[ inline]
111- fn mul ( self , scalar : DecafScalar ) -> DecafPoint {
112- self * & scalar
113- }
114- }
115-
116- #[ allow( clippy:: op_ref) ] // https://github.com/rust-lang/rust-clippy/issues/12463
117- impl Mul < & DecafScalar > for AffinePoint {
118- type Output = DecafPoint ;
119-
120- #[ inline]
121- fn mul ( self , scalar : & DecafScalar ) -> DecafPoint {
122- & self * scalar
123- }
124- }
125-
12696impl Mul < & DecafScalar > for & AffinePoint {
12797 type Output = DecafPoint ;
12898
@@ -132,20 +102,4 @@ impl Mul<&DecafScalar> for &AffinePoint {
132102 }
133103}
134104
135- impl Mul < AffinePoint > for DecafScalar {
136- type Output = DecafPoint ;
137-
138- #[ inline]
139- fn mul ( self , point : AffinePoint ) -> DecafPoint {
140- point * self
141- }
142- }
143-
144- impl Mul < & AffinePoint > for DecafScalar {
145- type Output = DecafPoint ;
146-
147- #[ inline]
148- fn mul ( self , point : & AffinePoint ) -> DecafPoint {
149- point * self
150- }
151- }
105+ define_mul_variants ! ( LHS = AffinePoint , RHS = DecafScalar , Output = DecafPoint ) ;
0 commit comments