mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
Remove Clone restriction from RocList FromIterator
You don't need clone-able elements to create a Roc list from an owned iterator.
This commit is contained in:
parent
0ba5b3cfc6
commit
b1e41a5995
1 changed files with 1 additions and 1 deletions
|
@ -555,7 +555,7 @@ impl<T: Hash> Hash for RocList<T> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<T: Clone> FromIterator<T> for RocList<T> {
|
impl<T> FromIterator<T> for RocList<T> {
|
||||||
fn from_iter<I>(into: I) -> Self
|
fn from_iter<I>(into: I) -> Self
|
||||||
where
|
where
|
||||||
I: IntoIterator<Item = T>,
|
I: IntoIterator<Item = T>,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue