Skip to content

Commit

Permalink
Merge pull request #1183 from cuviper/heap-slice
Browse files Browse the repository at this point in the history
Add a TODO for using `BinaryHeap::as_slice`
  • Loading branch information
cuviper authored Jul 27, 2024
2 parents 3e3962c + 383cc42 commit 7b3ef64
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/collections/binary_heap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ delegate_indexed_iterator! {
/// Parallel iterator over an immutable reference to a binary heap
#[derive(Debug)]
pub struct Iter<'a, T: Ord + Sync> {
// TODO (MSRV 1.80): this could use `slice::Iter` built from
// `BinaryHeap::as_slice`, rather than using a temp `Vec<&T>`.
inner: vec::IntoIter<&'a T>,
}

Expand Down

0 comments on commit 7b3ef64

Please sign in to comment.