fixup Debug bounds
This commit is contained in:
committed by
Jonathan Behrens
parent
9c566e64fa
commit
14ee4e468d
@@ -2287,7 +2287,7 @@ impl<'a, K, V> Debug for RawEntryBuilderHashed<'a, K, V> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[unstable(feature = "hash_raw_entry", issue = "42069")]
|
#[unstable(feature = "hash_raw_entry", issue = "42069")]
|
||||||
impl<'a, K, V> Debug for RawEntry<'a, K, V> {
|
impl<'a, K: Debug, V: Debug> Debug for RawEntry<'a, K, V> {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||||
match *self {
|
match *self {
|
||||||
RawEntry::Vacant(ref v) => {
|
RawEntry::Vacant(ref v) => {
|
||||||
@@ -2305,7 +2305,7 @@ impl<'a, K, V> Debug for RawEntry<'a, K, V> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[unstable(feature = "hash_raw_entry", issue = "42069")]
|
#[unstable(feature = "hash_raw_entry", issue = "42069")]
|
||||||
impl<'a, K, V> Debug for RawOccupiedEntry<'a, K, V> {
|
impl<'a, K: Debug, V: Debug> Debug for RawOccupiedEntry<'a, K, V> {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||||
f.debug_struct("RawOccupiedEntry")
|
f.debug_struct("RawOccupiedEntry")
|
||||||
.field("key", self.key())
|
.field("key", self.key())
|
||||||
|
|||||||
Reference in New Issue
Block a user