Skip to content

Commit d54d8cb

Browse files
committed
LinearMap: remove allow(clippy::map_identity)
This was previously required due to a false positive that has since been resolved.
1 parent 2e71c18 commit d54d8cb

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/linear_map.rs

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

519519
fn next(&mut self) -> Option<Self::Item> {
520-
// False positive from clippy
521-
// Option<&(K, V)> -> Option<(&K, &V)>
522-
#[allow(clippy::map_identity)]
523520
self.iter.next().map(|(k, v)| (k, v))
524521
}
525522
}

0 commit comments

Comments
 (0)