]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #19236 : csouth3/rust/master, r=Gankro
authorbors <bors@rust-lang.org>
Mon, 24 Nov 2014 07:51:32 +0000 (07:51 +0000)
committerbors <bors@rust-lang.org>
Mon, 24 Nov 2014 07:51:32 +0000 (07:51 +0000)
Whilst browsing the source for BinaryHeap, I saw a FIXME for implementing into_iter.  I think, since the BinaryHeap is represented internally using just a Vec, just calling into_iter() on the BinaryHeap's data should be sufficient to do what we want here.  If this actually isn't the right approach (e.g., I should write a struct MoveItems and appropriate implementation for BinaryHeap instead), let me know and I'll happily rework this.

Both of the tests that I have added pass.  This is my first contribution to Rust, so please let me know any ways I can improve this PR!

1  2 
src/libcollections/binary_heap.rs

Simple merge