diff --git a/crates/webclaw-cli/src/main.rs b/crates/webclaw-cli/src/main.rs index af5b0af..a4d7da4 100644 --- a/crates/webclaw-cli/src/main.rs +++ b/crates/webclaw-cli/src/main.rs @@ -962,7 +962,10 @@ async fn run_crawl(cli: &Cli) -> Result<(), String> { ); if result.errors > 0 { - Err(format!("{} of {} pages failed", result.errors, result.total)) + Err(format!( + "{} of {} pages failed", + result.errors, result.total + )) } else { Ok(()) } diff --git a/crates/webclaw-mcp/src/server.rs b/crates/webclaw-mcp/src/server.rs index e82e94f..1f3e1c7 100644 --- a/crates/webclaw-mcp/src/server.rs +++ b/crates/webclaw-mcp/src/server.rs @@ -45,7 +45,9 @@ fn validate_url(url: &str) -> Result<(), String> { "Invalid URL: scheme '{}' not allowed, must start with http:// or https://", parsed.scheme() )), - Err(e) => Err(format!("Invalid URL: {e}. Must start with http:// or https://")), + Err(e) => Err(format!( + "Invalid URL: {e}. Must start with http:// or https://" + )), } } @@ -396,10 +398,7 @@ impl WebclawMcp { SmartFetchResult::Cloud(resp) => { // Extract markdown from the cloud response and build a minimal // ExtractionResult so we can compute the diff locally. - let markdown = resp - .get("markdown") - .and_then(|v| v.as_str()) - .unwrap_or(""); + let markdown = resp.get("markdown").and_then(|v| v.as_str()).unwrap_or(""); if markdown.is_empty() { return Err(