From 3a72b71d97f91af373fefe69b03628e99a156022 Mon Sep 17 00:00:00 2001 From: "ilblackdragon@gmail.com" Date: Sat, 21 Mar 2026 15:37:42 -0700 Subject: [PATCH] style(gemini_oauth): rustfmt formatting [skip-regression-check] Co-Authored-By: Claude Opus 4.6 (1M context) --- src/llm/gemini_oauth.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/llm/gemini_oauth.rs b/src/llm/gemini_oauth.rs index f1bae23d..b36eb595 100644 --- a/src/llm/gemini_oauth.rs +++ b/src/llm/gemini_oauth.rs @@ -1007,10 +1007,7 @@ impl GeminiOauthProvider { fn curate_contents(contents: &[serde_json::Value]) -> Vec { let mut curated = Vec::new(); for entry in contents { - let role = entry - .get("role") - .and_then(|r| r.as_str()) - .unwrap_or(""); + let role = entry.get("role").and_then(|r| r.as_str()).unwrap_or(""); if role != "model" { // Always keep non-model turns (user, tool-response) @@ -1040,10 +1037,7 @@ impl GeminiOauthProvider { .get("thought") .and_then(|t| t.as_bool()) .unwrap_or(false); - if !is_thought - && text.is_empty() - && part.get("functionCall").is_none() - { + if !is_thought && text.is_empty() && part.get("functionCall").is_none() { return false; } }