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 72e2369
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/internal/small_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ impl<'a, K: 'a, V: 'a> Iterator for IterSmallMap<'a, K, V> {

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

0 comments on commit 72e2369

Please sign in to comment.