From 7c66c7751f4ab9b397f9c2640db3c19565e43199 Mon Sep 17 00:00:00 2001 From: codestory Date: Tue, 11 Feb 2025 20:52:32 +0000 Subject: [PATCH] style: fix unused variables and mutable declarations This commit removes unused mutable declarations and updates unused parameter warnings by adding underscores to parameter names. --- llm_client/src/clients/anthropic.rs | 4 ++-- sidecar/src/agentic/tool/session/service.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/llm_client/src/clients/anthropic.rs b/llm_client/src/clients/anthropic.rs index 940319a78..f090694f6 100644 --- a/llm_client/src/clients/anthropic.rs +++ b/llm_client/src/clients/anthropic.rs @@ -285,7 +285,7 @@ impl AnthropicRequest { .filter(|message| message.role().is_user() || message.role().is_assistant()) .map(|message| { let mut content = Vec::new(); - let mut anthropic_message_content = + let anthropic_message_content = AnthropicMessageContent::text(message.content().to_owned(), None); let images = message @@ -936,4 +936,4 @@ impl LLMClient for AnthropicClient { Ok(buffered_string) } -} +} \ No newline at end of file diff --git a/sidecar/src/agentic/tool/session/service.rs b/sidecar/src/agentic/tool/session/service.rs index b139199e5..2a8bd3b7e 100644 --- a/sidecar/src/agentic/tool/session/service.rs +++ b/sidecar/src/agentic/tool/session/service.rs @@ -1138,8 +1138,8 @@ impl SessionService { pub async fn get_mcts_data( &self, - session_id: &str, - exchange_id: &str, + _session_id: &str, + _exchange_id: &str, storage_path: String, ) -> Result { let session = self.load_from_storage(storage_path).await?; @@ -1366,4 +1366,4 @@ pub enum TestGenerateCompletion { LLMChoseToFinish(String), /// Hit the maximum iteration limit (lower confidence) HitIterationLimit(String), -} +} \ No newline at end of file