From f310a3e0a2bfe266ec4fe2809e94b2785888896b Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com> Date: Wed, 25 Mar 2026 16:48:08 +0100 Subject: [PATCH] style: apply cargo fmt formatting Co-Authored-By: Claude Opus 4.6 (1M context) --- compliance-agent/src/trackers/gitea.rs | 5 +++-- compliance-dashboard/src/infrastructure/mcp.rs | 5 ++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/compliance-agent/src/trackers/gitea.rs b/compliance-agent/src/trackers/gitea.rs index 2bdabe7..9f1667f 100644 --- a/compliance-agent/src/trackers/gitea.rs +++ b/compliance-agent/src/trackers/gitea.rs @@ -201,8 +201,9 @@ impl IssueTracker for GiteaTracker { tracing::warn!( "Gitea PR review with inline comments failed ({status}): {text}, retrying as plain comment" ); - let fallback_url = - self.api_url(&format!("/repos/{owner}/{repo}/issues/{pr_number}/comments")); + let fallback_url = self.api_url(&format!( + "/repos/{owner}/{repo}/issues/{pr_number}/comments" + )); let fallback_resp = self .http .post(&fallback_url) diff --git a/compliance-dashboard/src/infrastructure/mcp.rs b/compliance-dashboard/src/infrastructure/mcp.rs index 60d7cd9..3c9a3a3 100644 --- a/compliance-dashboard/src/infrastructure/mcp.rs +++ b/compliance-dashboard/src/infrastructure/mcp.rs @@ -148,7 +148,10 @@ pub async fn refresh_mcp_status() -> Result<(), ServerFnError> { // Derive health URL from the endpoint (replace trailing /mcp with /health) let health_url = if server.endpoint_url.ends_with("/mcp") { - format!("{}health", &server.endpoint_url[..server.endpoint_url.len() - 3]) + format!( + "{}health", + &server.endpoint_url[..server.endpoint_url.len() - 3] + ) } else { format!("{}/health", server.endpoint_url.trim_end_matches('/')) };