From a5fc856b00d35eb82f3aef95d7861c08fb85be43 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Tue, 17 Dec 2024 20:39:38 +0100 Subject: [PATCH] Rename type parameter to increase clarity --- experiments/2024-12-09/src/math/scalar.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) }