diff --git a/experiments/2024-12-09/src/math/scalar.rs b/experiments/2024-12-09/src/math/scalar.rs index 758addec6..876a95117 100644 --- a/experiments/2024-12-09/src/math/scalar.rs +++ b/experiments/2024-12-09/src/math/scalar.rs @@ -49,13 +49,13 @@ impl From for Scalar { } } -impl ops::Add for Scalar +impl ops::Add for Scalar where - T: Into, + S: Into, { type Output = Self; - fn add(self, other: T) -> Self::Output { + fn add(self, other: S) -> Self::Output { let value = self.value() + other.into().value(); Self::new(value) }