Update src/geometry/scale.rs

Removed return

Co-authored-by: Sébastien Crozet <sebastien@crozet.re>
This commit is contained in:
Yuri6037 2021-10-24 20:21:07 +02:00 committed by GitHub
parent de41c42af7
commit 91b8424a86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -249,9 +249,9 @@ impl<T: Scalar, const D: usize> Scale<T, D> {
.vector
.map(|e| {
if e != T::zero() {
return T::one() / e;
T::one() / e
} else {
return T::zero();
T::zero()
}
})
.into();