diff options
| author | Nazım Can Altınova <canaltinova@gmail.com> | 2020-08-11 20:42:02 +0200 |
|---|---|---|
| committer | Nazım Can Altınova <canaltinova@gmail.com> | 2020-08-11 20:42:02 +0200 |
| commit | 8faf550e5f7211188bc9560ae459c155fb1aafdf (patch) | |
| tree | 7084078cc04f35c28f23d65e0cb2e86883c87df0 | |
| parent | c346e89db8a57e15111daa35685a2542d3be7c77 (diff) | |
| download | rust-8faf550e5f7211188bc9560ae459c155fb1aafdf.tar.gz rust-8faf550e5f7211188bc9560ae459c155fb1aafdf.zip | |
Remove the unused bounds from Debug impl of HashMap::{IntoKeys,IntoValues}
| -rw-r--r-- | library/std/src/collections/hash/map.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/collections/hash/map.rs b/library/std/src/collections/hash/map.rs index 968f81c2c35..022bdbe30a0 100644 --- a/library/std/src/collections/hash/map.rs +++ b/library/std/src/collections/hash/map.rs @@ -1915,7 +1915,7 @@ impl<K, V> ExactSizeIterator for IntoKeys<K, V> { impl<K, V> FusedIterator for IntoKeys<K, V> {} #[unstable(feature = "map_into_keys_values", issue = "75294")] -impl<K: Debug, V: Debug> fmt::Debug for IntoKeys<K, V> { +impl<K: Debug, V> fmt::Debug for IntoKeys<K, V> { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.debug_list().entries(self.inner.iter().map(|(k, _)| k)).finish() } @@ -1945,7 +1945,7 @@ impl<K, V> ExactSizeIterator for IntoValues<K, V> { impl<K, V> FusedIterator for IntoValues<K, V> {} #[unstable(feature = "map_into_keys_values", issue = "75294")] -impl<K: Debug, V: Debug> fmt::Debug for IntoValues<K, V> { +impl<K, V: Debug> fmt::Debug for IntoValues<K, V> { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.debug_list().entries(self.inner.iter().map(|(_, v)| v)).finish() } |
