From 668af801cfe80e6cae350b2587f99bbe869ec96e Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Fri, 20 Jan 2017 21:51:01 +0100 Subject: [PATCH] Add debug implementation for BinaryHeapPlace --- src/libcollections/binary_heap.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/libcollections/binary_heap.rs b/src/libcollections/binary_heap.rs index 93b864a007fcb..b9d90c358fe21 100644 --- a/src/libcollections/binary_heap.rs +++ b/src/libcollections/binary_heap.rs @@ -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")]