diff --git a/meilisearch-http/src/routes/index.rs b/meilisearch-http/src/routes/index.rs index f1bd31f46..78f3ea22e 100644 --- a/meilisearch-http/src/routes/index.rs +++ b/meilisearch-http/src/routes/index.rs @@ -151,7 +151,9 @@ pub async fn create_index(mut ctx: Request) -> SResult { .into_internal_error()?; if let Some(id) = body.attribute_identifier { - created_index.main.put_schema(&mut writer, &Schema::with_identifier(id))?; + created_index + .main + .put_schema(&mut writer, &Schema::with_identifier(id))?; } writer.commit()?; diff --git a/meilisearch-http/src/routes/setting.rs b/meilisearch-http/src/routes/setting.rs index 8c58d324b..3c2472b96 100644 --- a/meilisearch-http/src/routes/setting.rs +++ b/meilisearch-http/src/routes/setting.rs @@ -86,11 +86,11 @@ pub struct UpdateSettings { pub index_new_fields: Option, } - pub async fn update_all(mut ctx: Request) -> SResult { ctx.is_allowed(SettingsWrite)?; let index = ctx.index()?; - let settings_update: UpdateSettings = ctx.body_json().await.map_err(ResponseError::bad_request)?; + let settings_update: UpdateSettings = + ctx.body_json().await.map_err(ResponseError::bad_request)?; let db = &ctx.state().db; let settings = Settings {