Use IndexMap::swap_remove instead of deprecated IndexMap::remove

This commit is contained in:
Michael Beaumont
2019-09-11 21:04:36 +02:00
committed by Sean McArthur
parent be079f7e40
commit 06a68a76a2

View File

@@ -341,7 +341,7 @@ impl<'a> Ptr<'a> {
/// concerned.
pub fn unlink(&mut self) {
let id = self.key.stream_id;
self.store.ids.remove(&id);
self.store.ids.swap_remove(&id);
}
}