style: fix cargo fmt formatting

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Valerio 2026-03-24 17:27:15 +01:00
parent ea9c783bc5
commit b92c0ed186
2 changed files with 8 additions and 6 deletions

View file

@ -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(())
}

View file

@ -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(