From 1a58229438dccede09362ac042567ffbab5c4fa7 Mon Sep 17 00:00:00 2001 From: jimmyfraiture Date: Wed, 1 Oct 2025 14:48:05 +0100 Subject: [PATCH] Switch to closure --- codex-rs/core/tests/suite/tool_harness.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codex-rs/core/tests/suite/tool_harness.rs b/codex-rs/core/tests/suite/tool_harness.rs index 7fb81e9228..99cbd7f5f1 100644 --- a/codex-rs/core/tests/suite/tool_harness.rs +++ b/codex-rs/core/tests/suite/tool_harness.rs @@ -323,7 +323,7 @@ async fn update_plan_tool_rejects_malformed_payload() -> anyhow::Result<()> { .get("output") .and_then(|value| value.as_object()) .and_then(|obj| obj.get("success")) - .and_then(|value| value.as_bool()) + .and_then(serde_json::Value::as_bool) { assert!( !success_flag,