Skip to content

Fix elided-named-lifetimes #1542

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 8, 2024

Conversation

ehuss
Copy link
Contributor

@ehuss ehuss commented Sep 6, 2024

Rust has recently started warning about the missing lifetime here (via rust-lang/rust#129207).

warning: elided lifetime has a name
   --> src/data.rs:154:31
    |
151 |     pub(crate) fn subteams_of<'a>(
    |                               -- lifetime `'a` declared here
...
154 |     ) -> impl Iterator<Item = &Team> + 'a {
    |                               ^ this elided lifetime gets resolved as `'a`
    |
    = note: `#[warn(elided_named_lifetimes)]` on by default

@Mark-Simulacrum Mark-Simulacrum merged commit 88e8817 into rust-lang:master Sep 8, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants