diff options
Diffstat (limited to 'src/geom/rel.rs')
| -rw-r--r-- | src/geom/rel.rs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/geom/rel.rs b/src/geom/rel.rs index 5c3b0b43..a8e75d1c 100644 --- a/src/geom/rel.rs +++ b/src/geom/rel.rs @@ -128,10 +128,7 @@ impl<T: Numeric> Mul<f64> for Rel<T> { type Output = Self; fn mul(self, other: f64) -> Self::Output { - Self { - rel: self.rel * other, - abs: self.abs * other, - } + Self { rel: self.rel * other, abs: self.abs * other } } } @@ -147,10 +144,7 @@ impl<T: Numeric> Div<f64> for Rel<T> { type Output = Self; fn div(self, other: f64) -> Self::Output { - Self { - rel: self.rel / other, - abs: self.abs / other, - } + Self { rel: self.rel / other, abs: self.abs / other } } } |
