From 0f8ac923904716e77f73b8e8f34b6891e4a88287 Mon Sep 17 00:00:00 2001 From: aibrahim-oai Date: Sat, 12 Jul 2025 17:20:35 -0700 Subject: [PATCH] Allow deadcode in test_support (#1555) #1546 Was pushed while not passing the clippy integration tests. This is fixing it. --- codex-rs/core/tests/test_support.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/codex-rs/core/tests/test_support.rs b/codex-rs/core/tests/test_support.rs index 5dbe6371..7d1e3a7f 100644 --- a/codex-rs/core/tests/test_support.rs +++ b/codex-rs/core/tests/test_support.rs @@ -30,6 +30,7 @@ pub fn load_default_config_for_test(codex_home: &TempDir) -> Config { /// with only a `type` field results in an event with no `data:` section. This /// makes it trivial to extend the fixtures as OpenAI adds new event kinds or /// fields. +#[allow(dead_code)] pub fn load_sse_fixture(path: impl AsRef) -> String { let events: Vec = serde_json::from_reader(std::fs::File::open(path).expect("read fixture")) @@ -54,6 +55,7 @@ pub fn load_sse_fixture(path: impl AsRef) -> String { /// fixture template with the supplied identifier before parsing. This lets a /// single JSON template be reused by multiple tests that each need a unique /// `response_id`. +#[allow(dead_code)] pub fn load_sse_fixture_with_id(path: impl AsRef, id: &str) -> String { let raw = std::fs::read_to_string(path).expect("read fixture template"); let replaced = raw.replace("__ID__", id);