Skip to content

Commit 140fd7b

Browse files
ZichenYuanclaude
andcommitted
test: explain dead_code allow on common mod in responses_error_headers_test
The attribute is needed because `common::spawn_mock_llm` is never called from this test binary; narrowing the `use` line does not affect it. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011GZ19b5uMpUst42ipnn6tk Signed-off-by: Sunny Yuan <y.zichen@wustl.edu>
1 parent 62603ca commit 140fd7b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎crates/agentic-server/tests/responses_error_headers_test.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
//! and processed metadata headers (`retry-after`, request IDs, rate-limit headers) and must not
77
//! relabel a non-JSON error body as `application/json`.
88
9+
// `common` is compiled into every test binary; this one never calls `spawn_mock_llm`,
10+
// so silence the resulting dead-code warning (same as the other tests that skip it).
911
#[allow(dead_code)]
1012
mod common;
1113

0 commit comments

Comments
 (0)