From 4d96d6f9a04694888a7159ac52122d71c37e70d3 Mon Sep 17 00:00:00 2001 From: "Dr. Dystopia" Date: Wed, 14 Jul 2021 22:18:30 +0200 Subject: [PATCH] Resolve all '#[allow(clippy::neg_multiply)]' error supressions --- common/src/figure/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/src/figure/mod.rs b/common/src/figure/mod.rs index c43c81568f..b16d43730f 100644 --- a/common/src/figure/mod.rs +++ b/common/src/figure/mod.rs @@ -119,7 +119,6 @@ impl DynaUnionizer { } } - #[allow(clippy::neg_multiply)] // TODO: Pending review in #587 pub fn unify(self) -> (Dyna, Vec3) { if self.0.is_empty() { return (Dyna::filled(Vec3::zero(), V::empty(), ()), Vec3::zero()); @@ -137,7 +136,7 @@ impl DynaUnionizer { // Allocate new segment let mut combined = Dyna::filled(new_size, V::empty(), ()); // Copy segments into combined - let origin = min_point.map(|e| e * -1); + let origin = min_point.map(|e| -e); for (dyna, offset) in self.0 { for (pos, vox) in dyna.full_vol_iter() { if !vox.is_empty() {