limit use of stackless iterator to test suite

This commit is contained in:
Mark Thom
2022-04-05 21:02:39 -06:00
parent f3167f6b5f
commit 3b6138eaaa
3 changed files with 8 additions and 3 deletions

View File

@@ -104,6 +104,7 @@ impl<'a> StacklessPreOrderHeapIter<'a, MarkerUMP> {
}
impl<'a> StacklessPreOrderHeapIter<'a, IteratorUMP> {
#[cfg(test)]
pub(crate) fn new(heap: &'a mut Vec<HeapCellValue>, cell: HeapCellValue) -> Self {
let orig_heap_len = heap.len();
let start = orig_heap_len + 1;