From d19dba48c1d6f80b50ce3f8d394a0ce2bfb44ee9 Mon Sep 17 00:00:00 2001 From: starr-openai Date: Wed, 3 Jun 2026 01:28:10 -0700 Subject: [PATCH] fix auth login store clippy --- codex-rs/login/src/server.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/codex-rs/login/src/server.rs b/codex-rs/login/src/server.rs index 80c8aca358..6197f882b7 100644 --- a/codex-rs/login/src/server.rs +++ b/codex-rs/login/src/server.rs @@ -17,6 +17,7 @@ use std::io::Write; use std::io::{self}; use std::net::SocketAddr; use std::net::TcpStream; +#[cfg(test)] use std::path::Path; use std::path::PathBuf; use std::sync::Arc; @@ -809,6 +810,7 @@ pub(crate) async fn exchange_code_for_tokens( /// Persists exchanged credentials using the configured auth store, then /// best-effort revokes any superseded managed ChatGPT tokens. +#[cfg(test)] pub(crate) async fn persist_tokens_async( codex_home: &Path, api_key: Option,