fix(fmt): apply rustfmt formatting to webview_fetch.rs
Some checks failed
Test / frontend-tests (pull_request) Successful in 2m10s
Test / frontend-typecheck (pull_request) Failing after 2m16s
Test / rust-fmt-check (pull_request) Has been cancelled
Test / rust-tests (pull_request) Has been cancelled
Test / rust-clippy (pull_request) Has been cancelled

Adjusted line breaks to match rustfmt conventions

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Shaun Arman 2026-04-06 15:20:53 -05:00
parent ead585f583
commit 9a132cce74

View File

@ -130,10 +130,8 @@ pub async fn search_confluence_webview<R: tauri::Runtime>(
// Build CQL query with OR logic for keywords // Build CQL query with OR logic for keywords
let cql = if keywords.len() > 1 { let cql = if keywords.len() > 1 {
// Multiple keywords - search for any of them // Multiple keywords - search for any of them
let keyword_conditions: Vec<String> = keywords let keyword_conditions: Vec<String> =
.iter() keywords.iter().map(|k| format!("text ~ \"{k}\"")).collect();
.map(|k| format!("text ~ \"{k}\""))
.collect();
keyword_conditions.join(" OR ") keyword_conditions.join(" OR ")
} else if !keywords.is_empty() { } else if !keywords.is_empty() {
// Single keyword // Single keyword
@ -629,8 +627,7 @@ pub async fn search_azuredevops_workitems_webview<R: tauri::Runtime>(
let clean_description = strip_html_simple(description); let clean_description = strip_html_simple(description);
let excerpt = clean_description.chars().take(200).collect(); let excerpt = clean_description.chars().take(200).collect();
let url = let url = format!("{}/_workitems/edit/{id}", org_url.trim_end_matches('/'));
format!("{}/_workitems/edit/{id}", org_url.trim_end_matches('/'));
let full_content = if clean_description.len() > 3000 { let full_content = if clean_description.len() > 3000 {
format!("{}...", &clean_description[..3000]) format!("{}...", &clean_description[..3000])
@ -685,8 +682,6 @@ pub async fn add_azuredevops_comment_webview<R: tauri::Runtime>(
.and_then(|id| id.as_i64()) .and_then(|id| id.as_i64())
.ok_or_else(|| "Failed to get comment ID from response".to_string())?; .ok_or_else(|| "Failed to get comment ID from response".to_string())?;
tracing::info!( tracing::info!("Successfully added comment {comment_id} to work item {work_item_id}");
"Successfully added comment {comment_id} to work item {work_item_id}"
);
Ok(format!("Comment added successfully (ID: {comment_id})")) Ok(format!("Comment added successfully (ID: {comment_id})"))
} }