chore(lint): remove unused imports, variables, and redundant mut bindings

Eliminate low-risk clippy warnings as part of the strict lint backlog (#409):

- Remove unused `uuid::Uuid` imports from slack and telegram channels
- Remove unnecessary `mut` and redundant rebindings in agent loop
- Prefix unused `channel_id` variable in discord channel
- Remove unused test imports (`ChatResponse`, `ToolCall`, `TempDir`, `Path`)
This commit is contained in:
darwin808 2026-02-17 16:14:56 +08:00 committed by Chummy
parent ba287a2ea5
commit 4413790859
7 changed files with 3 additions and 10 deletions

View file

@ -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() {