1
0
Fork 0
mirror of synced 2025-09-24 04:40:05 +00:00
This commit is contained in:
schaeff 2021-03-31 12:39:38 +02:00
parent b552a8d997
commit e7eaf9a913

View file

@ -259,7 +259,7 @@ impl<T: Field> Mul<&T> for LinComb<T> {
impl<T: Field> Div<&T> for LinComb<T> {
type Output = LinComb<T>;
// Clippy warns about multiplication in a method named div. It's okay, here, since we multiply with the inverse.
// Clippy warns about multiplication in a method named div. It's okay, here, since we multiply with the inverse.
#[allow(clippy::suspicious_arithmetic_impl)]
fn div(self, scalar: &T) -> LinComb<T> {
self * &scalar.inverse_mul().unwrap()