mirror of
https://github.com/roc-lang/roc.git
synced 2025-11-27 22:26:33 +00:00
Loosen bound on VecMap from-iterator
This commit is contained in:
parent
6dc86513a1
commit
265c1c058f
1 changed files with 1 additions and 1 deletions
|
|
@ -210,7 +210,7 @@ impl<K, V> ExactSizeIterator for IntoIter<K, V> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<K: Ord, V> std::iter::FromIterator<(K, V)> for VecMap<K, V> {
|
impl<K: PartialEq, V> std::iter::FromIterator<(K, V)> for VecMap<K, V> {
|
||||||
fn from_iter<T: IntoIterator<Item = (K, V)>>(iter: T) -> Self {
|
fn from_iter<T: IntoIterator<Item = (K, V)>>(iter: T) -> Self {
|
||||||
let mut this = Self::default();
|
let mut this = Self::default();
|
||||||
this.extend(iter);
|
this.extend(iter);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue