style(gemini_oauth): rustfmt formatting [skip-regression-check]

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
This commit is contained in:
2026-03-21 15:37:42 -07:00
co-authored by Claude Opus 4.6
parent 94f88231a1
commit 3a72b71d97
+2 -8
View File
@@ -1007,10 +1007,7 @@ impl GeminiOauthProvider {
fn curate_contents(contents: &[serde_json::Value]) -> Vec<serde_json::Value> {
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;
}
}