remove reference to into_iter

This commit is contained in:
Brian Hicks 2022-09-07 15:06:50 -05:00
parent c1ae2fe8b7
commit c993d882cc
No known key found for this signature in database
GPG key ID: C4F324B9CAAB0D50

View file

@ -56,7 +56,7 @@ impl<T> RocList<T> {
}
pub fn iter(&self) -> impl Iterator<Item = &T> {
self.into_iter()
self.as_slice().iter()
}
/// Used for both roc_alloc and roc_realloc - given the number of elements,