style: apply Rust formatting
This commit is contained in:
parent
7db6911e36
commit
492e7b5f2b
@ -596,10 +596,9 @@ fn fetch_360_web_search(query: &str) -> Result<Vec<WebSearchItem>, String> {
|
||||
fn parse_360_web_search(body: &str) -> Vec<WebSearchItem> {
|
||||
let blocks = regex::Regex::new(r#"(?is)<li class=[\"']res-list[\"'].*?</li>"#)
|
||||
.expect("valid 360 result block regex");
|
||||
let heading = regex::Regex::new(
|
||||
r#"(?is)data-mdurl=[\"']([^\"']+)[\"'][^>]*>(.*?)</a>\s*</h3>"#,
|
||||
)
|
||||
.expect("valid 360 result heading regex");
|
||||
let heading =
|
||||
regex::Regex::new(r#"(?is)data-mdurl=[\"']([^\"']+)[\"'][^>]*>(.*?)</a>\s*</h3>"#)
|
||||
.expect("valid 360 result heading regex");
|
||||
let description = regex::Regex::new(
|
||||
r#"(?is)<p[^>]+class=[\"'][^\"']*(?:res-desc|res-desc__text)[^\"']*[\"'][^>]*>(.*?)</p>"#,
|
||||
)
|
||||
|
||||
@ -156,7 +156,9 @@ pub fn get_agent_docs_path(app_handle: tauri::AppHandle) -> Result<String, Strin
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
pub fn get_vault_ai_guidance_status(vault_path: String) -> Result<WorkspaceAiGuidanceStatus, String> {
|
||||
pub fn get_vault_ai_guidance_status(
|
||||
vault_path: String,
|
||||
) -> Result<WorkspaceAiGuidanceStatus, String> {
|
||||
let vault_path = expand_tilde(&vault_path);
|
||||
crate::vault::get_ai_guidance_status(vault_path.as_ref())
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user