From e2d9fe8d0a6af3abf0bbbf6b3ba66ab8ac51082d Mon Sep 17 00:00:00 2001 From: "Deven T. Corzine" Date: Sat, 28 Dec 2024 16:54:01 -0500 Subject: [PATCH] Fix Rust 1.83.0 "elided_named_lifetimes" warning. (#3955) 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` ## Motivation and Context ## Description ## Testing ## Checklist - [ ] For changes to the smithy-rs codegen or runtime crates, I have created a changelog entry Markdown file in the `.changelog` directory, specifying "client," "server," or both in the `applies_to` key. - [ ] For changes to the AWS SDK, generated SDK code, or SDK runtime crates, I have created a changelog entry Markdown file in the `.changelog` directory, specifying "aws-sdk-rust" in the `applies_to` key. ---- _By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice._ --------- Co-authored-by: Landon James --- aws/rust-runtime/aws-config/Cargo.toml | 2 +- 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 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/aws/rust-runtime/aws-config/Cargo.toml b/aws/rust-runtime/aws-config/Cargo.toml index 64da1aaf0..2cb33239b 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 ", 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 7d657f7f6..17f494986 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 424c6cab0..34e5b02b9 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 9605cb0e0..11b85d2ab 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, { -- GitLab