Fix reverse iteration in cretonne-entity's Iter.
A `DoubleEndedIterator` needs to track both a forward position and a reverse position, so that `next_back()` can pop from the back of the sequence.
This commit is contained in:
@@ -55,7 +55,7 @@ where
|
||||
|
||||
/// Iterate over all the keys in this set.
|
||||
pub fn keys(&self) -> Keys<K> {
|
||||
Keys::new(self.len)
|
||||
Keys::with_len(self.len)
|
||||
}
|
||||
|
||||
/// Resize the set to have `n` entries by adding default entries as needed.
|
||||
|
||||
Reference in New Issue
Block a user