diff options
| author | Federico Ravasio <ravasio.federico@gmail.com> | 2017-06-23 12:48:19 +0200 |
|---|---|---|
| committer | Federico Ravasio <ravasio.federico@gmail.com> | 2017-06-23 12:48:29 +0200 |
| commit | 545bfcd864683a6e774762cf5f872615de7b1b51 (patch) | |
| tree | 46e0a04d81d38566a4da1ba573efe2feb03cc1c5 /src/liballoc/btree | |
| parent | 2ea1d2d0077914282d87cfd66897410f6214daa7 (diff) | |
| download | rust-545bfcd864683a6e774762cf5f872615de7b1b51.tar.gz rust-545bfcd864683a6e774762cf5f872615de7b1b51.zip | |
Relax Debug constraints when debugging {HashMap,BTreeMap}::{Keys,Values}.
Fixed #41924.
Diffstat (limited to 'src/liballoc/btree')
| -rw-r--r-- | src/liballoc/btree/map.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/liballoc/btree/map.rs b/src/liballoc/btree/map.rs index 6656c90d7e9..a51c70159db 100644 --- a/src/liballoc/btree/map.rs +++ b/src/liballoc/btree/map.rs @@ -334,7 +334,7 @@ pub struct Keys<'a, K: 'a, V: 'a> { } #[stable(feature = "collection_debug", since = "1.17.0")] -impl<'a, K: 'a + fmt::Debug, V: 'a + fmt::Debug> fmt::Debug for Keys<'a, K, V> { +impl<'a, K: 'a + fmt::Debug, V: 'a> fmt::Debug for Keys<'a, K, V> { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { f.debug_list().entries(self.clone()).finish() } @@ -353,7 +353,7 @@ pub struct Values<'a, K: 'a, V: 'a> { } #[stable(feature = "collection_debug", since = "1.17.0")] -impl<'a, K: 'a + fmt::Debug, V: 'a + fmt::Debug> fmt::Debug for Values<'a, K, V> { +impl<'a, K: 'a, V: 'a + fmt::Debug> fmt::Debug for Values<'a, K, V> { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { f.debug_list().entries(self.clone()).finish() } |
