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
let vectors = match from_slice(vectors) {
Ok(vectors) => VectorOrArrayOfVectors::into_array_of_vectors(vectors),
Err(_) => return Err(UserError::InvalidVectorsType {
Err(_) => {
return Err(UserError::InvalidVectorsType {
document_id: document_id(),
value: from_slice(vectors).map_err(InternalError::SerdeJson)?,
}.into()),
}
.into())
}
};
for (i, vector) in vectors.into_iter().enumerate() {