summaryrefslogtreecommitdiff
path: root/src/geom.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-10-07 19:28:34 +0200
committerLaurenz <laurmaedje@gmail.com>2020-10-07 19:28:34 +0200
commit13230db68c3cb2842f23f95fc1b47fd989e6277d (patch)
treeb0bf94a8e3f935a7e9076237783846dee14e3e81 /src/geom.rs
parentd2e220245d9c17a0ac8c3474984924f65ed6b835 (diff)
Fix some clippy warnings ✔
Diffstat (limited to 'src/geom.rs')
-rw-r--r--src/geom.rs8
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,
}
}
}