diff --git a/src/internal/small_map.rs b/src/internal/small_map.rs index a1fe5f9e..8fc16a06 100644 --- a/src/internal/small_map.rs +++ b/src/internal/small_map.rs @@ -177,6 +177,8 @@ impl<'a, K: 'a, V: 'a> Iterator for IterSmallMap<'a, K, V> { fn next(&mut self) -> Option { 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(), }