style: fix clippy errors and formatting drift

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
johannesandClaude Sonnet 5.5 committed 2026-11-28 14:15:03 +01:00
1 parent 164671a0c5
commit 13d914c8c0
5 files changed
+55 -28

No files matched your search

+10 -9
View File
@@ -517,15 +517,16 @@ impl Tool for Task {
spec_for(&self.kinds())
}
async fn call(&self, a: Value, cx: &ToolCtx) -> ToolResult {
if a["prompt"].is_null() && a["prompts"].is_null() {
if let Some(w) = a["wait"].as_array() {
let ids: Vec<usize> = w
.iter()
.filter_map(|v| v.as_u64())
.map(|n| n as usize)
.collect();
return self.wait(&ids, cx).await;
}
if a["prompt"].is_null()
&& a["prompts"].is_null()
&& let Some(w) = a["wait"].as_array()
{
let ids: Vec<usize> = w
.iter()
.filter_map(|v| v.as_u64())
.map(|n| n as usize)
.collect();
return self.wait(&ids, cx).await;
}
if a["background"].as_bool() == Some(true) {
let ps: Vec<&str> = match a["prompts"].as_array() {