From de41c42af7ff08262c24c9cc82f3b084edb2daad Mon Sep 17 00:00:00 2001 From: Yuri6037 Date: Sun, 24 Oct 2021 20:20:13 +0200 Subject: [PATCH] Update src/geometry/scale.rs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Simplified code Co-authored-by: Sébastien Crozet --- src/geometry/scale.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/geometry/scale.rs b/src/geometry/scale.rs index f626174d..fc966013 100755 --- a/src/geometry/scale.rs +++ b/src/geometry/scale.rs @@ -187,7 +187,7 @@ impl Scale { T: ClosedDiv + One + Zero, { for i in 0..D { - if self.vector[(i, 0)] == T::zero() { + if self.vector[i] == T::zero() { return None; } }