Skip to content

Commit 0c1cc71

Browse files
committed
LinearMap: Fix false-positive clippy lint
1 parent c0649c4 commit 0c1cc71

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/linear_map.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,9 @@ impl<'a, K, V> Iterator for Iter<'a, K, V> {
450450
type Item = (&'a K, &'a V);
451451

452452
fn next(&mut self) -> Option<Self::Item> {
453+
// False positive from clippy
454+
// Option<&(K, V)> -> Option<(&K, &V)>
455+
#[allow(clippy::map_identity)]
453456
self.iter.next().map(|(k, v)| (k, v))
454457
}
455458
}

0 commit comments

Comments
 (0)