Skip to content

Commit

Permalink
fix clippy::manual_map
Browse files Browse the repository at this point in the history
  • Loading branch information
hellow554 authored and phimuemue committed Jun 3, 2022
1 parent 501783e commit a16c01c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/adaptors/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,12 +327,7 @@ impl<I, J> Iterator for Product<I, J>
}
Some(x) => x
};
match self.a_cur {
None => None,
Some(ref a) => {
Some((a.clone(), elt_b))
}
}
self.a_cur.as_ref().map(|a| (a.clone(), elt_b))
}

fn size_hint(&self) -> (usize, Option<usize>) {
Expand Down

0 comments on commit a16c01c

Please sign in to comment.