Skip to content

Fix warning about lifetimes #55

Description

@mheffner
   |
33 |     pub fn secrets_manager(&self) -> SecretsManager {
   |                            ^^^^^     -------------- the same lifetime is hidden here
   |                            |
   |                            the lifetime is elided here
   |
   = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
   = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
help: use `'_` for type paths
   |
33 |     pub fn secrets_manager(&self) -> SecretsManager<'_> {
   |                                                    ++++
warning: hiding a lifetime that's elided elsewhere is confusing
Warning:   --> src/secrets/client.rs:38:28
   |
38 |     pub fn parameter_store(&self) -> ParameterStore {
   |                            ^^^^^     -------------- the same lifetime is hidden here
   |                            |
   |                            the lifetime is elided here
   |
   = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
   |
38 |     pub fn parameter_store(&self) -> ParameterStore<'_> {
   |                                                    ++++
warning: `rotel-extension` (lib) generated 2 warnings
    Finished `release` profile [optimized] target(s) in 7m 47s

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions