diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-11-04 09:30:44 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-11-04 11:38:09 +0100 |
| commit | eb951c008beea502042db4a3a0e8d1f8b51f6f52 (patch) | |
| tree | 9856ee4ed0222222669de10e616a580b2a60135e /src/geom/rel.rs | |
| parent | 33928a00dc58250e24da1dae4e5db17e7b598d70 (diff) | |
Style changes
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 } } } |
