diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-10-07 19:28:34 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-10-07 19:28:34 +0200 |
| commit | 13230db68c3cb2842f23f95fc1b47fd989e6277d (patch) | |
| tree | b0bf94a8e3f935a7e9076237783846dee14e3e81 /src/geom.rs | |
| parent | d2e220245d9c17a0ac8c3474984924f65ed6b835 (diff) | |
Fix some clippy warnings ✔
Diffstat (limited to 'src/geom.rs')
| -rw-r--r-- | src/geom.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/geom.rs b/src/geom.rs index 27cc87e9..90c7ac62 100644 --- a/src/geom.rs +++ b/src/geom.rs @@ -178,8 +178,8 @@ impl Mul<f64> for Linear { fn mul(self, other: f64) -> Self { Self { - rel: self.rel + other, - abs: self.abs + other, + rel: self.rel * other, + abs: self.abs * other, } } } @@ -196,8 +196,8 @@ impl Mul<Linear> for f64 { fn mul(self, other: Linear) -> Linear { Linear { - rel: self + other.rel, - abs: self + other.abs, + rel: self * other.rel, + abs: self * other.abs, } } } |
