From 4f406ca881f77c039ff87025bc7a0a3aad3695f8 Mon Sep 17 00:00:00 2001 From: Edwin Date: Sat, 9 Sep 2023 22:00:05 +0200 Subject: [PATCH] Update credentials.rs Fixes error where crate does not compile with feature `http-credentials` disabled --- aws-creds/src/credentials.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/aws-creds/src/credentials.rs b/aws-creds/src/credentials.rs index 71554defc9..1cbcb3a507 100644 --- a/aws-creds/src/credentials.rs +++ b/aws-creds/src/credentials.rs @@ -188,6 +188,7 @@ fn http_get(url: &str) -> attohttpc::Result { } impl Credentials { + #[cfg(feature = "http-credentials")] pub fn refresh(&mut self) -> Result<(), CredentialsError> { if let Some(expiration) = self.expiration { if expiration.0 <= OffsetDateTime::now_utc() {