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
+19 -12
View File
@@ -18,11 +18,11 @@ mod http;
mod io;
mod llm;
pub mod log_buffer;
pub(crate) mod pipeline_state;
pub mod rebuild;
mod state;
mod store;
mod workflow;
pub(crate) mod pipeline_state;
mod worktree;
use crate::agents::AgentPool;
@@ -132,7 +132,14 @@ fn parse_cli_args(args: &[String]) -> Result<CliArgs, String> {
return Err("agent mode requires --rendezvous <URL>".to_string());
}
Ok(CliArgs { port, path, init, agent, rendezvous, gateway })
Ok(CliArgs {
port,
path,
init,
agent,
rendezvous,
gateway,
})
}
fn print_help() {
@@ -156,11 +163,15 @@ fn print_help() {
println!("OPTIONS:");
println!(" -h, --help Print this help and exit");
println!(" -V, --version Print the version and exit");
println!(" --port <PORT> Port to listen on (default: 3001). Persisted to project.toml.");
println!(
" --port <PORT> Port to listen on (default: 3001). Persisted to project.toml."
);
println!(" --rendezvous <URL> WebSocket URL of the rendezvous peer (agent mode only).");
println!(" Example: ws://server:3001/crdt-sync");
println!(" --gateway Start in gateway mode. Reads projects.toml from PATH");
println!(" (or cwd) and proxies MCP calls to per-project containers.");
println!(
" (or cwd) and proxies MCP calls to per-project containers."
);
}
/// Resolve the optional positional path argument into an absolute `PathBuf`.
@@ -184,8 +195,8 @@ async fn main() -> Result<(), std::io::Error> {
});
// Log version and build hash so we can verify what's running.
let build_hash = std::fs::read_to_string(".huskies/build_hash")
.unwrap_or_else(|_| "unknown".to_string());
let build_hash =
std::fs::read_to_string(".huskies/build_hash").unwrap_or_else(|_| "unknown".to_string());
slog!(
"[startup] huskies v{} (build {})",
env!("CARGO_PKG_VERSION"),
@@ -433,12 +444,8 @@ async fn main() -> Result<(), std::io::Error> {
{
let story_id = evt.story_id.clone();
tokio::task::spawn_blocking(move || {
if let Err(e) =
crate::worktree::prune_worktree_sync(&root, &story_id)
{
crate::slog!(
"[crdt] worktree prune failed for {story_id}: {e}"
);
if let Err(e) = crate::worktree::prune_worktree_sync(&root, &story_id) {
crate::slog!("[crdt] worktree prune failed for {story_id}: {e}");
}
});
}