mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-01-19 09:35:51 +08:00
Make rustfmt happy
This commit is contained in:
parent
531748c536
commit
ff3664431f
@ -41,10 +41,13 @@ pub fn extract_vector_points<R: io::Read + io::Seek>(
|
|||||||
// extract the vectors
|
// extract the vectors
|
||||||
let vectors = match from_slice(vectors) {
|
let vectors = match from_slice(vectors) {
|
||||||
Ok(vectors) => VectorOrArrayOfVectors::into_array_of_vectors(vectors),
|
Ok(vectors) => VectorOrArrayOfVectors::into_array_of_vectors(vectors),
|
||||||
Err(_) => return Err(UserError::InvalidVectorsType {
|
Err(_) => {
|
||||||
document_id: document_id(),
|
return Err(UserError::InvalidVectorsType {
|
||||||
value: from_slice(vectors).map_err(InternalError::SerdeJson)?,
|
document_id: document_id(),
|
||||||
}.into()),
|
value: from_slice(vectors).map_err(InternalError::SerdeJson)?,
|
||||||
|
}
|
||||||
|
.into())
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
for (i, vector) in vectors.into_iter().enumerate() {
|
for (i, vector) in vectors.into_iter().enumerate() {
|
||||||
|
Loading…
Reference in New Issue
Block a user