From ff3664431f8d16310614f946c1ce5b63a2ab56dc Mon Sep 17 00:00:00 2001 From: Kerollmops Date: Tue, 20 Jun 2023 16:26:00 +0200 Subject: [PATCH] Make rustfmt happy --- .../index_documents/extract/extract_vector_points.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/milli/src/update/index_documents/extract/extract_vector_points.rs b/milli/src/update/index_documents/extract/extract_vector_points.rs index e78dbc080..ddf25917c 100644 --- a/milli/src/update/index_documents/extract/extract_vector_points.rs +++ b/milli/src/update/index_documents/extract/extract_vector_points.rs @@ -41,10 +41,13 @@ pub fn extract_vector_points( // extract the vectors let vectors = match from_slice(vectors) { Ok(vectors) => VectorOrArrayOfVectors::into_array_of_vectors(vectors), - Err(_) => return Err(UserError::InvalidVectorsType { - document_id: document_id(), - value: from_slice(vectors).map_err(InternalError::SerdeJson)?, - }.into()), + Err(_) => { + return Err(UserError::InvalidVectorsType { + document_id: document_id(), + value: from_slice(vectors).map_err(InternalError::SerdeJson)?, + } + .into()) + } }; for (i, vector) in vectors.into_iter().enumerate() {