From 4a0ec15ad2f72ffdc9302180875d290a07e399bb Mon Sep 17 00:00:00 2001 From: Kerollmops Date: Tue, 10 Jun 2025 11:00:14 +0200 Subject: [PATCH] Make cargo fmt happy --- crates/meilisearch/src/routes/chats/mod.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/crates/meilisearch/src/routes/chats/mod.rs b/crates/meilisearch/src/routes/chats/mod.rs index 6379aa83b..7a868fd45 100644 --- a/crates/meilisearch/src/routes/chats/mod.rs +++ b/crates/meilisearch/src/routes/chats/mod.rs @@ -62,10 +62,7 @@ pub async fn get_chat( if index_scheduler.chat_workspace_exists(&workspace_uid)? { Ok(HttpResponse::Ok().json(json!({ "uid": workspace_uid }))) } else { - Err(ResponseError::from_msg( - format!("chat {workspace_uid} not found"), - Code::ChatNotFound, - )) + Err(ResponseError::from_msg(format!("chat {workspace_uid} not found"), Code::ChatNotFound)) } } @@ -81,10 +78,7 @@ pub async fn delete_chat( wtxn.commit()?; Ok(HttpResponse::NoContent().finish()) } else { - Err(ResponseError::from_msg( - format!("chat {workspace_uid} not found"), - Code::ChatNotFound, - )) + Err(ResponseError::from_msg(format!("chat {workspace_uid} not found"), Code::ChatNotFound)) } }