mirror of
https://github.com/rust-embedded/heapless.git
synced 2026-05-01 06:24:08 +00:00
Merge pull request #534 from newAM/linear-map-clippy
LinearMap: remove allow(clippy::map_identity)
This commit is contained in:
@@ -513,9 +513,6 @@ impl<'a, K, V> Iterator for Iter<'a, K, V> {
|
||||
type Item = (&'a K, &'a V);
|
||||
|
||||
fn next(&mut self) -> Option<Self::Item> {
|
||||
// False positive from clippy
|
||||
// Option<&(K, V)> -> Option<(&K, &V)>
|
||||
#[allow(clippy::map_identity)]
|
||||
self.iter.next().map(|(k, v)| (k, v))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user