Skip to content

Commit

Permalink
Add a TODO for using BinaryHeap::as_slice
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed Jul 27, 2024
1 parent 3e3962c commit 383cc42
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 383cc42

Please sign in to comment.