Skip to content

Commit

Permalink
Add an MSRV note for retain_mut
Browse files Browse the repository at this point in the history
(cherry picked from commit 6b425e4)
  • Loading branch information
cuviper committed Jun 16, 2022
1 parent 75de999 commit 511280a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/map/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,7 @@ impl<K, V> IndexMapCore<K, V> {
where
F: FnMut(&mut K, &mut V) -> bool,
{
// FIXME: This could use Vec::retain_mut with MSRV 1.61.
// Like Vec::retain in self.entries, but with mutable K and V.
// We swap-shift all the items we want to keep, truncate the rest,
// then rebuild the raw hash table with the new indexes.
Expand Down

0 comments on commit 511280a

Please sign in to comment.