Skip to content

Commit 20bb569

Browse files
charley-oaicodex
andcommitted
core: fix fork snapshot helper borrow
Co-authored-by: Codex <[email protected]>
1 parent c42549d commit 20bb569

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

codex-rs/core/src/codex_tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,8 +1154,8 @@ async fn fork_startup_context_then_first_turn_diff_snapshot() {
11541154
.map(|(idx, item)| match item {
11551155
ResponseItem::Message { role, .. } => format!("{idx:02}:message/{role}"),
11561156
other => {
1157-
let item_type = serde_json::to_value(other)
1158-
.expect("serialize snapshot item")
1157+
let item = serde_json::to_value(other).expect("serialize snapshot item");
1158+
let item_type = item
11591159
.get("type")
11601160
.and_then(serde_json::Value::as_str)
11611161
.unwrap_or("<missing_type>");

0 commit comments

Comments
 (0)