fix: cargo fmt with rustfmt 1.94.0

This commit is contained in:
晴天
2026-03-07 23:46:59 +08:00
parent 1bd94143b5
commit 3fdab5a8c6

View File

@@ -397,14 +397,8 @@ pub async fn assistant_web_search(
break;
}
let raw_url = &cap[1];
let title = re_strip_tags
.replace_all(&cap[2], "")
.trim()
.to_string();
let snippet = re_strip_tags
.replace_all(&cap[3], "")
.trim()
.to_string();
let title = re_strip_tags.replace_all(&cap[2], "").trim().to_string();
let snippet = re_strip_tags.replace_all(&cap[3], "").trim().to_string();
// 解码 DuckDuckGo 的重定向 URL
let final_url = if let Some(pos) = raw_url.find("uddg=") {