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:
Ayaz Hafiz 2022-08-17 17:44:06 -05:00
parent 0ba5b3cfc6
commit b1e41a5995
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58

View file

@ -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
where
I: IntoIterator<Item = T>,