From 5140c71f97ad431f0f8ec5b43e8d0442587acb2e Mon Sep 17 00:00:00 2001 From: "Deven T. Corzine" Date: Sat, 28 Dec 2024 12:59:17 -0500 Subject: [PATCH 1/2] Fix Rust 1.83.0 "elided_named_lifetimes" warning. Compiling aws-config v1.5.12 (.../aws-config) warning: elided lifetime has a name --> .../aws-config/src/meta/credentials/chain.rs:117:72 | 117 | fn provide_credentials<'a>(&'a self) -> future::ProvideCredentials<'_> | -- lifetime `'a` declared here ^^ this elided lifetime gets resolved as `'a` | = note: `#[warn(elided_named_lifetimes)]` on by default warning: elided lifetime has a name --> .../aws-config/src/meta/token.rs:108:60 | 108 | fn provide_token<'a>(&'a self) -> future::ProvideToken<'_> | -- lifetime `'a` declared here ^^ this elided lifetime gets resolved as `'a` warning: elided lifetime has a name --> .../aws-config/src/sts/assume_role.rs:317:72 | 317 | fn provide_credentials<'a>(&'a self) -> future::ProvideCredentials<'_> | -- lifetime `'a` declared here ^^ this elided lifetime gets resolved as `'a` --- aws/rust-runtime/aws-config/src/meta/credentials/chain.rs | 2 +- aws/rust-runtime/aws-config/src/meta/token.rs | 2 +- aws/rust-runtime/aws-config/src/sts/assume_role.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/aws/rust-runtime/aws-config/src/meta/credentials/chain.rs b/aws/rust-runtime/aws-config/src/meta/credentials/chain.rs index 7d657f7f6c..17f4949868 100644 --- a/aws/rust-runtime/aws-config/src/meta/credentials/chain.rs +++ b/aws/rust-runtime/aws-config/src/meta/credentials/chain.rs @@ -114,7 +114,7 @@ impl CredentialsProviderChain { } impl ProvideCredentials for CredentialsProviderChain { - fn provide_credentials<'a>(&'a self) -> future::ProvideCredentials<'_> + fn provide_credentials<'a>(&'a self) -> future::ProvideCredentials<'a> where Self: 'a, { diff --git a/aws/rust-runtime/aws-config/src/meta/token.rs b/aws/rust-runtime/aws-config/src/meta/token.rs index 424c6cab0e..34e5b02b90 100644 --- a/aws/rust-runtime/aws-config/src/meta/token.rs +++ b/aws/rust-runtime/aws-config/src/meta/token.rs @@ -105,7 +105,7 @@ impl TokenProviderChain { } impl ProvideToken for TokenProviderChain { - fn provide_token<'a>(&'a self) -> future::ProvideToken<'_> + fn provide_token<'a>(&'a self) -> future::ProvideToken<'a> where Self: 'a, { diff --git a/aws/rust-runtime/aws-config/src/sts/assume_role.rs b/aws/rust-runtime/aws-config/src/sts/assume_role.rs index 9605cb0e07..11b85d2ab8 100644 --- a/aws/rust-runtime/aws-config/src/sts/assume_role.rs +++ b/aws/rust-runtime/aws-config/src/sts/assume_role.rs @@ -314,7 +314,7 @@ impl Inner { } impl ProvideCredentials for AssumeRoleProvider { - fn provide_credentials<'a>(&'a self) -> future::ProvideCredentials<'_> + fn provide_credentials<'a>(&'a self) -> future::ProvideCredentials<'a> where Self: 'a, { From 9e44da9525b4e5ec44ff3511d80d53eb4acfe3f9 Mon Sep 17 00:00:00 2001 From: Landon James Date: Sat, 28 Dec 2024 12:22:03 -0800 Subject: [PATCH 2/2] Bump patch version of aws-config --- aws/rust-runtime/aws-config/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws/rust-runtime/aws-config/Cargo.toml b/aws/rust-runtime/aws-config/Cargo.toml index 64da1aaf04..2cb33239b4 100644 --- a/aws/rust-runtime/aws-config/Cargo.toml +++ b/aws/rust-runtime/aws-config/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "aws-config" -version = "1.5.12" +version = "1.5.13" authors = [ "AWS Rust SDK Team ", "Russell Cohen ",