Skip to content

Commit 8faf550

Browse files
committed
Remove the unused bounds from Debug impl of HashMap::{IntoKeys,IntoValues}
1 parent c346e89 commit 8faf550

File tree

1 file changed

+2
-2
lines changed
  • library/std/src/collections/hash

1 file changed

+2
-2
lines changed

library/std/src/collections/hash/map.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1915,7 +1915,7 @@ impl<K, V> ExactSizeIterator for IntoKeys<K, V> {
19151915
impl<K, V> FusedIterator for IntoKeys<K, V> {}
19161916

19171917
#[unstable(feature = "map_into_keys_values", issue = "75294")]
1918-
impl<K: Debug, V: Debug> fmt::Debug for IntoKeys<K, V> {
1918+
impl<K: Debug, V> fmt::Debug for IntoKeys<K, V> {
19191919
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
19201920
f.debug_list().entries(self.inner.iter().map(|(k, _)| k)).finish()
19211921
}
@@ -1945,7 +1945,7 @@ impl<K, V> ExactSizeIterator for IntoValues<K, V> {
19451945
impl<K, V> FusedIterator for IntoValues<K, V> {}
19461946

19471947
#[unstable(feature = "map_into_keys_values", issue = "75294")]
1948-
impl<K: Debug, V: Debug> fmt::Debug for IntoValues<K, V> {
1948+
impl<K, V: Debug> fmt::Debug for IntoValues<K, V> {
19491949
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
19501950
f.debug_list().entries(self.inner.iter().map(|(_, v)| v)).finish()
19511951
}

0 commit comments

Comments
 (0)