mirror of
https://github.com/0xMassi/webclaw.git
synced 2026-04-25 00:06:21 +02:00
style: fix cargo fmt formatting
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
ea9c783bc5
commit
b92c0ed186
2 changed files with 8 additions and 6 deletions
|
|
@ -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(())
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue