We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7304afc commit 0241a18Copy full SHA for 0241a18
src/map/slice.rs
@@ -57,8 +57,6 @@ impl<K, V> Slice<K, V> {
57
///
58
/// Valid indices are *0 <= index < self.len()*
59
pub fn get_index_mut(&mut self, index: usize) -> Option<(&K, &mut V)> {
60
- // NB: we're not returning `&mut K` like `IndexMap::get_index_mut`,
61
- // because that was a mistake that should have required `MutableKeys`.
62
self.entries.get_mut(index).map(Bucket::ref_mut)
63
}
64
0 commit comments