Skip to content

Commit 6b425e4

Browse files
committed
Add an MSRV note for retain_mut
1 parent c88bb7d commit 6b425e4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/map/core.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,7 @@ impl<K, V> IndexMapCore<K, V> {
399399
where
400400
F: FnMut(&mut K, &mut V) -> bool,
401401
{
402+
// FIXME: This could use Vec::retain_mut with MSRV 1.61.
402403
// Like Vec::retain in self.entries, but with mutable K and V.
403404
// We swap-shift all the items we want to keep, truncate the rest,
404405
// then rebuild the raw hash table with the new indexes.

0 commit comments

Comments
 (0)