From 5076a817d52a01ca8292fffdc60a62fc8281fba0 Mon Sep 17 00:00:00 2001 From: Will Crichton Date: Thu, 22 Aug 2024 17:40:26 -0700 Subject: [PATCH] Fix lints --- crates/server/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/server/src/main.rs b/crates/server/src/main.rs index 7d94e8e..5cab042 100644 --- a/crates/server/src/main.rs +++ b/crates/server/src/main.rs @@ -56,7 +56,7 @@ fn chatbot_thread() -> (mpsc::Sender, mpsc::Sender<()>) { response = chat_fut => { responder.send(Some(response)).unwrap(); } - _ = cancel_fut => { + _ = cancel_fut => { responder.send(None).unwrap(); } } @@ -106,7 +106,7 @@ async fn chat(req: Request) -> Response { } None => MessagesResponse::Cancelled, }; - + Ok(Content::Json(serde_json::to_string(&response).unwrap())) }