mirror of
https://github.com/hannobraun/Fornjot
synced 2025-09-30 13:08:14 +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
|
where
|
||||||
T: Into<Scalar>,
|
S: Into<Scalar>,
|
||||||
{
|
{
|
||||||
type Output = Self;
|
type Output = Self;
|
||||||
|
|
||||||
fn add(self, other: T) -> Self::Output {
|
fn add(self, other: S) -> Self::Output {
|
||||||
let value = self.value() + other.into().value();
|
let value = self.value() + other.into().value();
|
||||||
Self::new(value)
|
Self::new(value)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user