diff --git a/src/agent/loop_.rs b/src/agent/loop_.rs index a995a72..e645764 100644 --- a/src/agent/loop_.rs +++ b/src/agent/loop_.rs @@ -489,10 +489,8 @@ pub(crate) async fn run_tool_call_loop( }; let response_text = response; - let mut assistant_history_content = response_text.clone(); + let assistant_history_content = response_text.clone(); let (parsed_text, tool_calls) = parse_tool_calls(&response_text); - let mut parsed_text = parsed_text; - let mut tool_calls = tool_calls; if tool_calls.is_empty() { // No tool calls — this is the final response diff --git a/src/channels/discord.rs b/src/channels/discord.rs index 6b3bae3..bdfb905 100644 --- a/src/channels/discord.rs +++ b/src/channels/discord.rs @@ -344,7 +344,7 @@ impl Channel for DiscordChannel { } let message_id = d.get("id").and_then(|i| i.as_str()).unwrap_or(""); - let channel_id = d.get("channel_id").and_then(|c| c.as_str()).unwrap_or("").to_string(); + let _channel_id = d.get("channel_id").and_then(|c| c.as_str()).unwrap_or("").to_string(); let channel_msg = ChannelMessage { id: if message_id.is_empty() { diff --git a/src/channels/mod.rs b/src/channels/mod.rs index f333e62..2a1dcf9 100644 --- a/src/channels/mod.rs +++ b/src/channels/mod.rs @@ -1065,7 +1065,7 @@ mod tests { use super::*; use crate::memory::{Memory, MemoryCategory, SqliteMemory}; use crate::observability::NoopObserver; - use crate::providers::{ChatMessage, ChatResponse, Provider, ToolCall}; + use crate::providers::{ChatMessage, Provider}; use crate::tools::{Tool, ToolResult}; use std::collections::HashMap; use std::sync::atomic::{AtomicUsize, Ordering}; diff --git a/src/channels/slack.rs b/src/channels/slack.rs index 4485af6..fd6b2f0 100644 --- a/src/channels/slack.rs +++ b/src/channels/slack.rs @@ -1,6 +1,5 @@ use super::traits::{Channel, ChannelMessage}; use async_trait::async_trait; -use uuid::Uuid; /// Slack channel — polls conversations.history via Web API pub struct SlackChannel { diff --git a/src/channels/telegram.rs b/src/channels/telegram.rs index 117f42e..bfe8dd6 100644 --- a/src/channels/telegram.rs +++ b/src/channels/telegram.rs @@ -3,7 +3,6 @@ use async_trait::async_trait; use reqwest::multipart::{Form, Part}; use std::path::Path; use std::time::Duration; -use uuid::Uuid; /// Telegram's maximum message length for text messages const TELEGRAM_MAX_MESSAGE_LENGTH: usize = 4096; diff --git a/src/config/schema.rs b/src/config/schema.rs index 24e510c..d0fcdbf 100644 --- a/src/config/schema.rs +++ b/src/config/schema.rs @@ -1810,7 +1810,6 @@ fn sync_directory(_path: &Path) -> Result<()> { mod tests { use super::*; use std::path::PathBuf; - use tempfile::TempDir; // ── Defaults ───────────────────────────────────────────── diff --git a/src/tools/git_operations.rs b/src/tools/git_operations.rs index a9461fc..9fcb453 100644 --- a/src/tools/git_operations.rs +++ b/src/tools/git_operations.rs @@ -2,8 +2,6 @@ use super::traits::{Tool, ToolResult}; use crate::security::{AutonomyLevel, SecurityPolicy}; use async_trait::async_trait; use serde_json::json; -#[cfg(test)] -use std::path::Path; use std::sync::Arc; /// Git operations tool for structured repository management.