Skip to content

Commit e2d9fe8

Browse files
devenlandonxjames
andauthored
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 <!--- Why is this change required? What problem does it solve? --> <!--- If it fixes an open issue, please link to the issue here --> ## Description <!--- Describe your changes in detail --> ## Testing <!--- Please describe in detail how you tested your changes --> <!--- Include details of your testing environment, and the tests you ran to --> <!--- see how your change affects other areas of the code, etc. --> ## Checklist <!--- If a checkbox below is not applicable, then please DELETE it rather than leaving it unchecked --> - [ ] 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 <lnj@amazon.com>
1 parent 7987374 commit e2d9fe8

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

aws/rust-runtime/aws-config/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "aws-config"
3-
version = "1.5.12"
3+
version = "1.5.13"
44
authors = [
55
"AWS Rust SDK Team <aws-sdk-rust@amazon.com>",
66
"Russell Cohen <rcoh@amazon.com>",

aws/rust-runtime/aws-config/src/meta/credentials/chain.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ impl CredentialsProviderChain {
114114
}
115115

116116
impl ProvideCredentials for CredentialsProviderChain {
117-
fn provide_credentials<'a>(&'a self) -> future::ProvideCredentials<'_>
117+
fn provide_credentials<'a>(&'a self) -> future::ProvideCredentials<'a>
118118
where
119119
Self: 'a,
120120
{

aws/rust-runtime/aws-config/src/meta/token.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ impl TokenProviderChain {
105105
}
106106

107107
impl ProvideToken for TokenProviderChain {
108-
fn provide_token<'a>(&'a self) -> future::ProvideToken<'_>
108+
fn provide_token<'a>(&'a self) -> future::ProvideToken<'a>
109109
where
110110
Self: 'a,
111111
{

aws/rust-runtime/aws-config/src/sts/assume_role.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ impl Inner {
314314
}
315315

316316
impl ProvideCredentials for AssumeRoleProvider {
317-
fn provide_credentials<'a>(&'a self) -> future::ProvideCredentials<'_>
317+
fn provide_credentials<'a>(&'a self) -> future::ProvideCredentials<'a>
318318
where
319319
Self: 'a,
320320
{

0 commit comments

Comments
 (0)