Skip to content

Commit

Permalink
ci: false positive
Browse files Browse the repository at this point in the history
  • Loading branch information
Eh2406 committed Jan 3, 2024
1 parent cb8827e commit 5906a38
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/internal/small_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ impl<'a, K: 'a, V: 'a> Iterator for IterSmallMap<'a, K, V> {

fn next(&mut self) -> Option<Self::Item> {
match self {
#[allow(clippy::map_identity)] // False-positive, remove when stable is >=1.76 February 24
IterSmallMap::Inline(inner) => inner.next().map(|(k, v)| (k, v)),
IterSmallMap::Map(inner) => inner.next(),
}
Expand Down

0 comments on commit 5906a38

Please sign in to comment.