Skip to content

Commit 62e06a4

Browse files
committed
Make IntoIterator lifetime bounds of &BTreeMap match with &HashMap
1 parent 8b84156 commit 62e06a4

File tree

1 file changed

+2
-2
lines changed
  • library/alloc/src/collections/btree

1 file changed

+2
-2
lines changed

library/alloc/src/collections/btree/map.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1294,7 +1294,7 @@ impl<K: Ord, V> BTreeMap<K, V> {
12941294
}
12951295

12961296
#[stable(feature = "rust1", since = "1.0.0")]
1297-
impl<'a, K: 'a, V: 'a> IntoIterator for &'a BTreeMap<K, V> {
1297+
impl<'a, K, V> IntoIterator for &'a BTreeMap<K, V> {
12981298
type Item = (&'a K, &'a V);
12991299
type IntoIter = Iter<'a, K, V>;
13001300

@@ -1363,7 +1363,7 @@ impl<K, V> Clone for Iter<'_, K, V> {
13631363
}
13641364

13651365
#[stable(feature = "rust1", since = "1.0.0")]
1366-
impl<'a, K: 'a, V: 'a> IntoIterator for &'a mut BTreeMap<K, V> {
1366+
impl<'a, K, V> IntoIterator for &'a mut BTreeMap<K, V> {
13671367
type Item = (&'a K, &'a mut V);
13681368
type IntoIter = IterMut<'a, K, V>;
13691369

0 commit comments

Comments
 (0)