Loading CHANGELOG.next.toml +6 −0 Original line number Diff line number Diff line Loading @@ -16,3 +16,9 @@ message = "Fix bug in profile file credential provider where a missing `default` references = ["aws-sdk-rust#547", "smithy-rs#1458"] meta = { "breaking" = false, "tada" = false, "bug" = true } author = "rcoh" [[aws-sdk-rust]] message = "Add `Debug` implementation to several types in `aws-config`" references = ["smithy-rs#1421"] meta = { "breaking" = false, "tada" = false, "bug" = false } author = "jdisanti" No newline at end of file aws/rust-runtime/aws-config/src/cache.rs +3 −3 Original line number Diff line number Diff line Loading @@ -38,7 +38,7 @@ impl<T, E> ExpiringCache<T, E> where T: Clone, { pub fn new(buffer_time: Duration) -> Self { pub(crate) fn new(buffer_time: Duration) -> Self { ExpiringCache { buffer_time, value: Arc::new(RwLock::new(OnceCell::new())), Loading @@ -64,7 +64,7 @@ where /// and the others will await that thread's result rather than multiple refreshes occurring. /// The function given to acquire a value future, `f`, will not be called /// if another thread is chosen to load the value. pub async fn get_or_load<F, Fut>(&self, f: F) -> Result<T, E> pub(crate) async fn get_or_load<F, Fut>(&self, f: F) -> Result<T, E> where F: FnOnce() -> Fut, Fut: Future<Output = Result<(T, SystemTime), E>>, Loading @@ -75,7 +75,7 @@ where } /// If the value is expired, clears the cache. Otherwise, yields the current value. pub async fn yield_or_clear_if_expired(&self, now: SystemTime) -> Option<T> { pub(crate) async fn yield_or_clear_if_expired(&self, now: SystemTime) -> Option<T> { // Short-circuit if the value is not expired if let Some((value, expiry)) = self.value.read().await.get() { if !expired(*expiry, self.buffer_time, now) { Loading aws/rust-runtime/aws-config/src/credential_process.rs +1 −1 Original line number Diff line number Diff line Loading @@ -178,7 +178,7 @@ impl CredentialProcessProvider { /// Keys are case insensitive. pub(crate) fn parse_credential_process_json_credentials( credentials_response: &str, ) -> Result<RefreshableCredentials, InvalidJsonCredentials> { ) -> Result<RefreshableCredentials<'_>, InvalidJsonCredentials> { let mut version = None; let mut access_key_id = None; let mut secret_access_key = None; Loading aws/rust-runtime/aws-config/src/default_provider/app_name.rs +1 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ pub fn default_provider() -> Builder { } /// Default provider builder for [`AppName`] #[derive(Default)] #[derive(Debug, Default)] pub struct Builder { env_provider: EnvironmentVariableAppNameProvider, profile_file: app_name::Builder, Loading aws/rust-runtime/aws-config/src/default_provider/credentials.rs +1 −1 Original line number Diff line number Diff line Loading @@ -85,7 +85,7 @@ impl ProvideCredentials for DefaultCredentialsChain { } /// Builder for [`DefaultCredentialsChain`](DefaultCredentialsChain) #[derive(Default)] #[derive(Debug, Default)] pub struct Builder { profile_file_builder: crate::profile::credentials::Builder, web_identity_builder: crate::web_identity_token::Builder, Loading Loading
CHANGELOG.next.toml +6 −0 Original line number Diff line number Diff line Loading @@ -16,3 +16,9 @@ message = "Fix bug in profile file credential provider where a missing `default` references = ["aws-sdk-rust#547", "smithy-rs#1458"] meta = { "breaking" = false, "tada" = false, "bug" = true } author = "rcoh" [[aws-sdk-rust]] message = "Add `Debug` implementation to several types in `aws-config`" references = ["smithy-rs#1421"] meta = { "breaking" = false, "tada" = false, "bug" = false } author = "jdisanti" No newline at end of file
aws/rust-runtime/aws-config/src/cache.rs +3 −3 Original line number Diff line number Diff line Loading @@ -38,7 +38,7 @@ impl<T, E> ExpiringCache<T, E> where T: Clone, { pub fn new(buffer_time: Duration) -> Self { pub(crate) fn new(buffer_time: Duration) -> Self { ExpiringCache { buffer_time, value: Arc::new(RwLock::new(OnceCell::new())), Loading @@ -64,7 +64,7 @@ where /// and the others will await that thread's result rather than multiple refreshes occurring. /// The function given to acquire a value future, `f`, will not be called /// if another thread is chosen to load the value. pub async fn get_or_load<F, Fut>(&self, f: F) -> Result<T, E> pub(crate) async fn get_or_load<F, Fut>(&self, f: F) -> Result<T, E> where F: FnOnce() -> Fut, Fut: Future<Output = Result<(T, SystemTime), E>>, Loading @@ -75,7 +75,7 @@ where } /// If the value is expired, clears the cache. Otherwise, yields the current value. pub async fn yield_or_clear_if_expired(&self, now: SystemTime) -> Option<T> { pub(crate) async fn yield_or_clear_if_expired(&self, now: SystemTime) -> Option<T> { // Short-circuit if the value is not expired if let Some((value, expiry)) = self.value.read().await.get() { if !expired(*expiry, self.buffer_time, now) { Loading
aws/rust-runtime/aws-config/src/credential_process.rs +1 −1 Original line number Diff line number Diff line Loading @@ -178,7 +178,7 @@ impl CredentialProcessProvider { /// Keys are case insensitive. pub(crate) fn parse_credential_process_json_credentials( credentials_response: &str, ) -> Result<RefreshableCredentials, InvalidJsonCredentials> { ) -> Result<RefreshableCredentials<'_>, InvalidJsonCredentials> { let mut version = None; let mut access_key_id = None; let mut secret_access_key = None; Loading
aws/rust-runtime/aws-config/src/default_provider/app_name.rs +1 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ pub fn default_provider() -> Builder { } /// Default provider builder for [`AppName`] #[derive(Default)] #[derive(Debug, Default)] pub struct Builder { env_provider: EnvironmentVariableAppNameProvider, profile_file: app_name::Builder, Loading
aws/rust-runtime/aws-config/src/default_provider/credentials.rs +1 −1 Original line number Diff line number Diff line Loading @@ -85,7 +85,7 @@ impl ProvideCredentials for DefaultCredentialsChain { } /// Builder for [`DefaultCredentialsChain`](DefaultCredentialsChain) #[derive(Default)] #[derive(Debug, Default)] pub struct Builder { profile_file_builder: crate::profile::credentials::Builder, web_identity_builder: crate::web_identity_token::Builder, Loading