mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-22 18:17:39 +08:00
Make clippy happy
This commit is contained in:
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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user