From a96a30975d8e40de7f0b04e6d1bf2f80cc4af902 Mon Sep 17 00:00:00 2001 From: Yuncong Zhang Date: Tue, 25 Feb 2025 17:39:56 +0800 Subject: [PATCH] Fix clippy --- mpcs/src/whir/field_wrapper.rs | 3 +++ mpcs/src/whir/field_wrapper/base.rs | 3 +++ 2 files changed, 6 insertions(+) diff --git a/mpcs/src/whir/field_wrapper.rs b/mpcs/src/whir/field_wrapper.rs index 81f557a39..14cbb8cba 100644 --- a/mpcs/src/whir/field_wrapper.rs +++ b/mpcs/src/whir/field_wrapper.rs @@ -124,6 +124,7 @@ impl Distribution> for Standard { impl Div for ExtensionFieldWrapper { type Output = Self; + #[allow(clippy::suspicious_arithmetic_impl)] fn div(self, other: Self) -> Self { Self(self.0 * other.0.inverse()) } @@ -132,6 +133,7 @@ impl Div for ExtensionFieldWrapper { impl<'a, E: FfExtField> Div<&'a Self> for ExtensionFieldWrapper { type Output = Self; + #[allow(clippy::suspicious_arithmetic_impl)] fn div(self, rhs: &'a Self) -> Self::Output { Self(self.0 * rhs.0.inverse()) } @@ -140,6 +142,7 @@ impl<'a, E: FfExtField> Div<&'a Self> for ExtensionFieldWrapper { impl<'a, E: FfExtField> Div<&'a mut Self> for ExtensionFieldWrapper { type Output = Self; + #[allow(clippy::suspicious_arithmetic_impl)] fn div(self, rhs: &'a mut Self) -> Self::Output { Self(self.0 * rhs.0.inverse()) } diff --git a/mpcs/src/whir/field_wrapper/base.rs b/mpcs/src/whir/field_wrapper/base.rs index 7f06dcd95..40c72b2c3 100644 --- a/mpcs/src/whir/field_wrapper/base.rs +++ b/mpcs/src/whir/field_wrapper/base.rs @@ -80,6 +80,7 @@ impl Distribution> for Standard { impl Div for BaseFieldWrapper { type Output = Self; + #[allow(clippy::suspicious_arithmetic_impl)] fn div(self, other: Self) -> Self { Self(self.0 * other.0.inverse()) } @@ -88,6 +89,7 @@ impl Div for BaseFieldWrapper { impl<'a, E: FfExtField> Div<&'a Self> for BaseFieldWrapper { type Output = Self; + #[allow(clippy::suspicious_arithmetic_impl)] fn div(self, rhs: &'a Self) -> Self::Output { Self(self.0 * rhs.0.inverse()) } @@ -96,6 +98,7 @@ impl<'a, E: FfExtField> Div<&'a Self> for BaseFieldWrapper { impl<'a, E: FfExtField> Div<&'a mut Self> for BaseFieldWrapper { type Output = Self; + #[allow(clippy::suspicious_arithmetic_impl)] fn div(self, rhs: &'a mut Self) -> Self::Output { Self(self.0 * rhs.0.inverse()) }