mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-30 00:34:26 +01: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 {
|
if length <= f32::EPSILON {
|
||||||
vector
|
vector
|
||||||
} else {
|
} else {
|
||||||
vector.iter_mut().for_each(|x| *x = *x / length);
|
vector.iter_mut().for_each(|x| *x /= length);
|
||||||
vector
|
vector
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user