fix: add --all to cargo fmt in script/test and autoformat codebase

cargo fmt without --all fails with "Failed to find targets" in
workspace repos. This was blocking every story's gates. Also ran
cargo fmt --all to fix all existing formatting issues.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
dave
2026-04-13 14:07:08 +00:00
parent ed2526ce41
commit 845b85e7a7
128 changed files with 3566 additions and 2395 deletions
+9 -12
View File
@@ -1,9 +1,9 @@
//! LLM chat — orchestrates multi-turn conversations with tool-calling LLM providers.
use crate::slog;
use crate::io::onboarding;
use crate::llm::prompts::{ONBOARDING_PROMPT, SYSTEM_PROMPT};
use crate::llm::providers::claude_code::ClaudeCodeResult;
use crate::llm::types::{Message, Role, ToolCall, ToolDefinition, ToolFunctionDefinition};
use crate::slog;
use crate::state::SessionState;
use crate::store::StoreOps;
use serde::Deserialize;
@@ -767,10 +767,7 @@ mod tests {
let store = MockStore::new();
let result = set_anthropic_api_key_impl(&store, "sk-my-key");
assert!(result.is_ok());
assert_eq!(
store.get("anthropic_api_key"),
Some(json!("sk-my-key"))
);
assert_eq!(store.get("anthropic_api_key"), Some(json!("sk-my-key")));
}
#[test]
@@ -868,8 +865,7 @@ mod tests {
let required = read_file.function.parameters["required"]
.as_array()
.unwrap();
let required_names: Vec<&str> =
required.iter().map(|v| v.as_str().unwrap()).collect();
let required_names: Vec<&str> = required.iter().map(|v| v.as_str().unwrap()).collect();
assert!(required_names.contains(&"path"));
}
@@ -883,8 +879,7 @@ mod tests {
let required = exec_shell.function.parameters["required"]
.as_array()
.unwrap();
let required_names: Vec<&str> =
required.iter().map(|v| v.as_str().unwrap()).collect();
let required_names: Vec<&str> = required.iter().map(|v| v.as_str().unwrap()).collect();
assert!(required_names.contains(&"command"));
assert!(required_names.contains(&"args"));
}
@@ -936,9 +931,11 @@ mod tests {
.await;
assert!(result.is_err());
assert!(result
.unwrap_err()
.contains("Unsupported provider: unsupported-provider"));
assert!(
result
.unwrap_err()
.contains("Unsupported provider: unsupported-provider")
);
}
// ---------------------------------------------------------------------------