style: apply cargo fmt formatting
Some checks failed
CI / Check (pull_request) Failing after 6m17s
CI / Detect Changes (pull_request) Has been skipped
CI / Deploy Agent (pull_request) Has been skipped
CI / Deploy Dashboard (pull_request) Has been skipped
CI / Deploy Docs (pull_request) Has been skipped
CI / Deploy MCP (pull_request) Has been skipped

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Sharang Parnerkar
2026-03-25 16:48:08 +01:00
parent e5c14636a7
commit f310a3e0a2
2 changed files with 7 additions and 3 deletions

View File

@@ -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)

View File

@@ -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('/'))
};