From dba2fa9c23eddbcae0c3552e928d2b2301d66988 Mon Sep 17 00:00:00 2001 From: Calvin Prewitt Date: Thu, 9 May 2024 10:03:54 -0500 Subject: [PATCH] fixed build feature --- crates/client/src/lib.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/client/src/lib.rs b/crates/client/src/lib.rs index 28c44346..f876783e 100644 --- a/crates/client/src/lib.rs +++ b/crates/client/src/lib.rs @@ -1225,7 +1225,8 @@ impl FileSystemClient { let disable_interactive = cfg!(not(feature = "cli-interactive")) || config.disable_interactive; - if cfg!(feature = "keyring") && auth_token.is_none() && config.keyring_auth { + #[cfg(feature = "keyring")] + if auth_token.is_none() && config.keyring_auth { auth_token = crate::keyring::get_auth_token(&url)? } @@ -1279,7 +1280,8 @@ impl FileSystemClient { let disable_interactive = cfg!(not(feature = "cli-interactive")) || config.disable_interactive; - if cfg!(feature = "keyring") && auth_token.is_none() && config.keyring_auth { + #[cfg(feature = "keyring")] + if auth_token.is_none() && config.keyring_auth { auth_token = crate::keyring::get_auth_token(®istry_url)? }