Skip to content

06/06_lifetimes: Hiding a lifetime that's elided elsewhere is confusing #305

Description

@iurii-kyrylenko

Got compiler warning about hiding elided lifetime at line 34:

pub fn iter(&self) -> std::slice::Iter<Ticket> {
self.tickets.iter()
}
}

Suggested fix:

    pub fn iter(&self) -> std::slice::Iter<'_, Ticket> {
        self.tickets.iter()
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions