From 9a132cce74734558cf3af55057fb6c267dd8f159 Mon Sep 17 00:00:00 2001 From: Shaun Arman Date: Mon, 6 Apr 2026 15:20:53 -0500 Subject: [PATCH] fix(fmt): apply rustfmt formatting to webview_fetch.rs Adjusted line breaks to match rustfmt conventions Co-Authored-By: Claude Sonnet 4.5 --- src-tauri/src/integrations/webview_fetch.rs | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src-tauri/src/integrations/webview_fetch.rs b/src-tauri/src/integrations/webview_fetch.rs index 96f0843c..81a89d41 100644 --- a/src-tauri/src/integrations/webview_fetch.rs +++ b/src-tauri/src/integrations/webview_fetch.rs @@ -130,10 +130,8 @@ pub async fn search_confluence_webview( // Build CQL query with OR logic for keywords let cql = if keywords.len() > 1 { // Multiple keywords - search for any of them - let keyword_conditions: Vec = keywords - .iter() - .map(|k| format!("text ~ \"{k}\"")) - .collect(); + let keyword_conditions: Vec = + keywords.iter().map(|k| format!("text ~ \"{k}\"")).collect(); keyword_conditions.join(" OR ") } else if !keywords.is_empty() { // Single keyword @@ -629,8 +627,7 @@ pub async fn search_azuredevops_workitems_webview( let clean_description = strip_html_simple(description); let excerpt = clean_description.chars().take(200).collect(); - let url = - format!("{}/_workitems/edit/{id}", org_url.trim_end_matches('/')); + let url = format!("{}/_workitems/edit/{id}", org_url.trim_end_matches('/')); let full_content = if clean_description.len() > 3000 { format!("{}...", &clean_description[..3000]) @@ -685,8 +682,6 @@ pub async fn add_azuredevops_comment_webview( .and_then(|id| id.as_i64()) .ok_or_else(|| "Failed to get comment ID from response".to_string())?; - tracing::info!( - "Successfully added comment {comment_id} to work item {work_item_id}" - ); + tracing::info!("Successfully added comment {comment_id} to work item {work_item_id}"); Ok(format!("Comment added successfully (ID: {comment_id})")) }