Skip to content

Commit

Permalink
Align iterator type name with method name in Fields::members
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Aug 11, 2024
1 parent c66df45 commit ecc7ae8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,12 @@ impl Fields {
/// variant's fields uniformly.
pub fn members(&self) -> impl Iterator<Item = Member> + '_ {
#[derive(Clone)]
struct IterMember<'a> {
struct Members<'a> {
iter: punctuated::Iter<'a, Field>,
unnamed_counter: u32,
}

impl<'a> Iterator for IterMember<'a> {
impl<'a> Iterator for Members<'a> {
type Item = Member;

fn next(&mut self) -> Option<Self::Item> {
Expand All @@ -140,7 +140,7 @@ impl Fields {
}
}

IterMember {
Members {
iter: self.iter(),
unnamed_counter: 0,
}
Expand Down

0 comments on commit ecc7ae8

Please sign in to comment.