mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-24 23:31:02 +00:00
Make clippy happy
This commit is contained in:
committed by
Clément Renault
parent
ab9f2269aa
commit
5c5a4e075d
@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user