clear rustc warnings (#3051)

This commit is contained in:
Mark Thom
2025-08-23 14:34:49 -07:00
parent e168b31963
commit 39d02a0caf
14 changed files with 25 additions and 78 deletions

View File

@@ -19,7 +19,7 @@ use std::vec::Vec;
pub fn eager_stackful_preorder_iter(
heap: &mut Heap,
value: HeapCellValue,
) -> EagerStackfulPreOrderHeapIter {
) -> EagerStackfulPreOrderHeapIter<'_> {
EagerStackfulPreOrderHeapIter::new(heap, value)
}
@@ -646,7 +646,7 @@ mod tests {
pub(crate) fn stackless_preorder_iter(
heap: &mut Heap,
start: usize,
) -> StacklessPreOrderHeapIter<IteratorUMP> {
) -> StacklessPreOrderHeapIter<'_, IteratorUMP> {
StacklessPreOrderHeapIter::<IteratorUMP>::new(heap, start)
}
@@ -654,7 +654,7 @@ mod tests {
pub(crate) fn stackless_post_order_iter(
heap: &'_ mut Heap,
start: usize,
) -> RightistPostOrderHeapIter {
) -> RightistPostOrderHeapIter<'_> {
PostOrderIterator::new(stackless_preorder_iter(heap, start))
}