Skip to content

Commit 03ef6c9

Browse files
authored
Merge pull request #434 from newAM/fix-clippy-map
LinearMap: Fix false-positive clippy lint
2 parents c0649c4 + 0c1cc71 commit 03ef6c9

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)