From 3fdab5a8c62d5cbae1f2e111ff19cf3efee56cf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=99=B4=E5=A4=A9?= Date: Sat, 7 Mar 2026 23:46:59 +0800 Subject: [PATCH] fix: cargo fmt with rustfmt 1.94.0 --- src-tauri/src/commands/assistant.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src-tauri/src/commands/assistant.rs b/src-tauri/src/commands/assistant.rs index 1ca66ef..0776654 100644 --- a/src-tauri/src/commands/assistant.rs +++ b/src-tauri/src/commands/assistant.rs @@ -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=") {