Skip to content

Commit 6bb3e62

Browse files
committed
fix(proxy): apply cargo fmt to fix CI formatting check
1 parent 862109e commit 6bb3e62

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

src-tauri/src/proxy/providers/transform.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,10 +1185,7 @@ mod tests {
11851185
// System message: no cache_control
11861186
assert!(result["messages"][0].get("cache_control").is_none());
11871187
// User message: content simplified to string (no cache_control → flat string)
1188-
assert_eq!(
1189-
result["messages"][1]["content"],
1190-
"Hello"
1191-
);
1188+
assert_eq!(result["messages"][1]["content"], "Hello");
11921189
// Tool: no cache_control
11931190
assert!(result["tools"][0].get("cache_control").is_none());
11941191
}
@@ -1230,7 +1227,12 @@ mod tests {
12301227
for (i, msg) in result["messages"].as_array().unwrap().iter().enumerate() {
12311228
if let Some(content) = msg.get("content") {
12321229
assert!(
1233-
!content.is_array() || content.as_array().unwrap().iter().all(|part| part.get("cache_control").is_none()),
1230+
!content.is_array()
1231+
|| content
1232+
.as_array()
1233+
.unwrap()
1234+
.iter()
1235+
.all(|part| part.get("cache_control").is_none()),
12341236
"messages[{i}] content parts must not have cache_control"
12351237
);
12361238
}

0 commit comments

Comments
 (0)