fix: resolve clippy failures in swarm and csv workers

This commit is contained in:
Hunter Bown
2026-02-26 14:29:21 -06:00
parent 70beb250e7
commit 5e52b59005
4 changed files with 6 additions and 8 deletions
Generated
+1 -1
View File
@@ -747,7 +747,7 @@ dependencies = [
[[package]]
name = "deepseek-tui"
version = "0.3.24"
version = "0.3.25"
dependencies = [
"anyhow",
"arboard",
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "deepseek-tui"
version = "0.3.24"
version = "0.3.25"
edition = "2024"
description = "Terminal-native TUI and CLI for DeepSeek models"
license = "MIT"
+1
View File
@@ -3065,6 +3065,7 @@ fn write_csv_worker_outcomes(csv_path: &Path, outcomes: &[CsvWorkerOutcome]) ->
Ok(())
}
#[allow(clippy::too_many_arguments)]
async fn run_csv_row_agent(
manager: SharedSubAgentManager,
runtime: SubAgentRuntime,
+3 -6
View File
@@ -552,11 +552,7 @@ impl ToolSpec for SwarmResultTool {
timed_out = true;
break outcome;
}
} else if !block {
return Err(ToolError::execution_failed(format!(
"Swarm '{swarm_id}' not found"
)));
} else if Instant::now() >= deadline {
} else if !block || Instant::now() >= deadline {
return Err(ToolError::execution_failed(format!(
"Swarm '{swarm_id}' not found"
)));
@@ -1044,7 +1040,7 @@ fn emit_swarm_status(event_tx: Option<&tokio::sync::mpsc::Sender<Event>>, outcom
let _ = event_tx.try_send(Event::Status { message });
}
fn parse_swarm_id<'a>(input: &'a Value) -> Result<&'a str, ToolError> {
fn parse_swarm_id(input: &Value) -> Result<&str, ToolError> {
input
.get("swarm_id")
.or_else(|| input.get("id"))
@@ -1170,6 +1166,7 @@ fn retry_delay_for_attempt(task: &SwarmTaskSpec, attempts_made: u32) -> Duration
Duration::from_millis(delay)
}
#[allow(clippy::too_many_arguments)]
fn schedule_retry_if_possible(
task: &SwarmTaskSpec,
task_id: &str,