mirror of
https://github.com/hannobraun/Fornjot
synced 2025-09-23 17:48:29 +00:00
Rename type parameter to increase clarity
This commit is contained in:
parent
b9fe448670
commit
a5fc856b00
@ -49,13 +49,13 @@ impl From<f64> for Scalar {
|
||||
}
|
||||
}
|
||||
|
||||
impl<T> ops::Add<T> for Scalar
|
||||
impl<S> ops::Add<S> for Scalar
|
||||
where
|
||||
T: Into<Scalar>,
|
||||
S: Into<Scalar>,
|
||||
{
|
||||
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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user