From 95a4a79662f107914cc4c378237c02a76a3b1756 Mon Sep 17 00:00:00 2001 From: Lutz Lange Date: Thu, 8 Oct 2026 08:26:58 +0200 Subject: [PATCH] fix(agent): gate the cache test helper like its only caller `CredentialCache::get` is used only by the llm_proxy test module, which is compiled on Linux only. On macOS and Windows the helper had no caller, and `make check` (clippy -D warnings) failed with `method get is never used`. The helper now carries the same cfg as the module. Fixes #153. Co-Authored-By: Claude Opus 5.5 --- crates/agent/src/llm_proxy.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/agent/src/llm_proxy.rs b/crates/agent/src/llm_proxy.rs index b9ea6522..1e949502 100644 --- a/crates/agent/src/llm_proxy.rs +++ b/crates/agent/src/llm_proxy.rs @@ -145,7 +145,7 @@ impl CredentialCache { } /// A cached credential for the key and device, if one is still valid. - #[cfg(test)] + #[cfg(all(test, target_os = "linux"))] fn get(&self, key: &str, device_id: &str) -> Option { self.lookup(key, device_id) .map(|(credential, _)| credential)