Make clippy happy

This commit is contained in:
Kerollmops 2023-06-20 13:48:39 +02:00 committed by Clément Renault
parent ab9f2269aa
commit 5c5a4e075d
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4

View File

@ -292,7 +292,7 @@ pub fn normalize_vector(mut vector: Vec<f32>) -> Vec<f32> {
if length <= f32::EPSILON {
vector
} else {
vector.iter_mut().for_each(|x| *x = *x / length);
vector.iter_mut().for_each(|x| *x /= length);
vector
}
}