Skip to content

Commit

Permalink
Add debug implementation for BinaryHeapPlace
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jan 20, 2017
1 parent ba841f0 commit 668af80
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/libcollections/binary_heap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1236,6 +1236,15 @@ where T: Clone + Ord {
place: vec::PlaceBack<'a, T>,
}

#[stable(feature = "collection_debug", since = "1.15.0")]
impl<'a, T: Clone + Ord + fmt::Debug> fmt::Debug for BinaryHeapPlace<'a, T> {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.debug_tuple("BinaryHeapPlace")
.field(&self)
.finish()
}
}

#[unstable(feature = "collection_placement",
reason = "placement protocol is subject to change",
issue = "30172")]
Expand Down

0 comments on commit 668af80

Please # to comment.