Make rustfmt happy

This commit is contained in:
Kerollmops 2023-06-20 16:26:00 +02:00 committed by Clément Renault
parent 531748c536
commit ff3664431f
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4

View File

@ -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() {