From 2f4a680d709a548a3c460dcbacc0d00f66a32975 Mon Sep 17 00:00:00 2001 From: Jason Date: Thu, 16 Apr 2026 13:11:33 +0800 Subject: [PATCH] style: apply cargo fmt to pass Backend Checks CI Wrap prompt_cache_key chained call across lines per rustfmt default formatting. Pure formatting change, no behavior difference. --- src-tauri/src/proxy/providers/claude.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src-tauri/src/proxy/providers/claude.rs b/src-tauri/src/proxy/providers/claude.rs index c2d87fc0b..18f85bfb0 100644 --- a/src-tauri/src/proxy/providers/claude.rs +++ b/src-tauri/src/proxy/providers/claude.rs @@ -149,7 +149,11 @@ pub fn transform_claude_request_for_api_format( "openai_chat" => { let mut result = super::transform::anthropic_to_openai(body)?; // Inject prompt_cache_key only if explicitly configured in meta - if let Some(key) = provider.meta.as_ref().and_then(|m| m.prompt_cache_key.as_deref()) { + if let Some(key) = provider + .meta + .as_ref() + .and_then(|m| m.prompt_cache_key.as_deref()) + { result["prompt_cache_key"] = serde_json::json!(key); } Ok(result)