Update src/geometry/scale.rs

Simplified code

Co-authored-by: Sébastien Crozet <sebastien@crozet.re>
This commit is contained in:
Yuri6037 2021-10-24 20:20:13 +02:00 committed by GitHub
parent b91ead7971
commit de41c42af7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ impl<T: Scalar, const D: usize> Scale<T, D> {
T: ClosedDiv + One + Zero,
{
for i in 0..D {
if self.vector[(i, 0)] == T::zero() {
if self.vector[i] == T::zero() {
return None;
}
}