Skip to content

Commit

Permalink
clippy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Zefick committed Apr 19, 2023
1 parent 666f656 commit dfde22f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/from.rs
Expand Up @@ -23,11 +23,11 @@ use crate::Map;
impl<K: Copy + PartialEq, V: Copy, const N: usize> FromIterator<(K, V)> for Map<K, V, N> {
#[inline]
fn from_iter<T: IntoIterator<Item = (K, V)>>(iter: T) -> Self {
let mut m: Map<K, V, N> = Map::new();
let mut m: Self = Self::new();
for (k, v) in iter {
m.insert(k, v);
}
return m;
m
}
}

Expand Down

0 comments on commit dfde22f

Please sign in to comment.